!function(e){function t(s){if(n[s])return n[s].exports;var i=n[s]={exports:{},id:s,loaded:!1};return e[s].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";n(1);var s=n(142),i=n(149),a=n(150),r=n(265),o=n(209),c=n(171),u=n(143),l=n(152),d=n(153),f=n(281),g=n(263),p=n(282),b=n(172),y=n(155),m=n(203),_=n(156),v=n(197),h=n(198),S=n(262),P=n(154),k=n(144),A=n(285),E=n(264),T=n(286),w=k("index");w.info("Using Webpack"),Object.assign(window.bbcdotcom,{objects:b,domLoaded:!1,addLoadEvent:g,classes:y,config:a,currencyProviders:f,utils:u,adverts:r,analytics:o,analyticsHelper:c,sections:l,locale:d,lotame:_,permutive:v,pubsub:m,Predicate:h,stats:S,survey:P,Logger:k,stickyAdvert:A,idcta:E}),s(),window.bbcdotcom.init=i.bind(window.bbcdotcom),Object.assign(window.bbcdotcom,p),e.exports=window.bbcdotcom,window.ns_=T,window.google_ad_request_done=window.bbcdotcom.adverts.adsenseRenderer.google_ad_request_done},function(e,t,n){"use strict";n(2),n(101),n(53),n(104),n(108),n(109),n(129),n(131),n(137)},function(e,t,n){n(3),n(40),n(41),n(42),n(46),n(49),n(50),n(53),n(55),n(56),n(57),n(58),n(59),n(60),n(63),n(65),n(67),n(68),n(69),n(74),n(75),n(76),n(77),n(78),n(80),n(81),n(82),n(83),n(86),n(87),n(88),n(90),n(91),n(95),n(97),n(98),e.exports=n(6)},function(e,t,n){var s=n(4);s(s.S,"Object",{create:n(25)})},function(e,t,n){var s=n(5),i=n(6),a=n(7),r=n(17),o=n(23),c="prototype",u=function(e,t,n){var l,d,f,g,p=e&u.F,b=e&u.G,y=e&u.S,m=e&u.P,_=e&u.B,v=b?s:y?s[t]||(s[t]={}):(s[t]||{})[c],h=b?i:i[t]||(i[t]={}),S=h[c]||(h[c]={});b&&(n=t);for(l in n)d=!p&&v&&void 0!==v[l],f=(d?v:n)[l],g=_&&d?o(f,s):m&&"function"==typeof f?o(Function.call,f):f,v&&r(v,l,f,e&u.U),h[l]!=f&&a(h,l,g),m&&S[l]!=f&&(S[l]=f)};s.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(e,t,n){var s=n(8),i=n(16);e.exports=n(12)?function(e,t,n){return s.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var s=n(9),i=n(11),a=n(15),r=Object.defineProperty;t.f=n(12)?Object.defineProperty:function(e,t,n){if(s(e),t=a(t,!0),s(n),i)try{return r(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var s=n(10);e.exports=function(e){if(!s(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(12)&&!n(13)(function(){return 7!=Object.defineProperty(n(14)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){e.exports=!n(13)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var s=n(10),i=n(5).document,a=s(i)&&s(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,t,n){var s=n(10);e.exports=function(e,t){if(!s(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!s(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!s(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!s(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var s=n(5),i=n(7),a=n(18),r=n(19)("src"),o=n(20),c="toString",u=(""+o).split(c);n(6).inspectSource=function(e){return o.call(e)},(e.exports=function(e,t,n,o){var c="function"==typeof n;c&&(a(n,"name")||i(n,"name",t)),e[t]!==n&&(c&&(a(n,r)||i(n,r,e[t]?""+e[t]:u.join(String(t)))),e===s?e[t]=n:o?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,c,function(){return"function"==typeof this&&this[r]||o.call(this)})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t){var n=0,s=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+s).toString(36))}},function(e,t,n){e.exports=n(21)("native-function-to-string",Function.toString)},function(e,t,n){var s=n(6),i=n(5),a="__core-js_shared__",r=i[a]||(i[a]={});(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:s.version,mode:n(22)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports=!1},function(e,t,n){var s=n(24);e.exports=function(e,t,n){if(s(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,s){return e.call(t,n,s)};case 3:return function(n,s,i){return e.call(t,n,s,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var s=n(9),i=n(26),a=n(38),r=n(37)("IE_PROTO"),o=function(){},c="prototype",u=function(){var e,t=n(14)("iframe"),s=a.length,i="<",r=">";for(t.style.display="none",n(39).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+r+"document.F=Object"+i+"/script"+r),e.close(),u=e.F;s--;)delete u[c][a[s]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(o[c]=s(e),n=new o,o[c]=null,n[r]=e):n=u(),void 0===t?n:i(n,t)}},function(e,t,n){var s=n(8),i=n(9),a=n(27);e.exports=n(12)?Object.defineProperties:function(e,t){i(e);for(var n,r=a(t),o=r.length,c=0;o>c;)s.f(e,n=r[c++],t[n]);return e}},function(e,t,n){var s=n(28),i=n(38);e.exports=Object.keys||function(e){return s(e,i)}},function(e,t,n){var s=n(18),i=n(29),a=n(33)(!1),r=n(37)("IE_PROTO");e.exports=function(e,t){var n,o=i(e),c=0,u=[];for(n in o)n!=r&&s(o,n)&&u.push(n);for(;t.length>c;)s(o,n=t[c++])&&(~a(u,n)||u.push(n));return u}},function(e,t,n){var s=n(30),i=n(32);e.exports=function(e){return s(i(e))}},function(e,t,n){var s=n(31);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==s(e)?e.split(""):Object(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var s=n(29),i=n(34),a=n(36);e.exports=function(e){return function(t,n,r){var o,c=s(t),u=i(c.length),l=a(r,u);if(e&&n!=n){for(;u>l;)if(o=c[l++],o!=o)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}}},function(e,t,n){var s=n(35),i=Math.min;e.exports=function(e){return e>0?i(s(e),9007199254740991):0}},function(e,t){var n=Math.ceil,s=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?s:n)(e)}},function(e,t,n){var s=n(35),i=Math.max,a=Math.min;e.exports=function(e,t){return e=s(e),e<0?i(e+t,0):a(e,t)}},function(e,t,n){var s=n(21)("keys"),i=n(19);e.exports=function(e){return s[e]||(s[e]=i(e))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var s=n(5).document;e.exports=s&&s.documentElement},function(e,t,n){var s=n(4);s(s.S+s.F*!n(12),"Object",{defineProperty:n(8).f})},function(e,t,n){var s=n(4);s(s.S+s.F*!n(12),"Object",{defineProperties:n(26)})},function(e,t,n){var s=n(29),i=n(43).f;n(45)("getOwnPropertyDescriptor",function(){return function(e,t){return i(s(e),t)}})},function(e,t,n){var s=n(44),i=n(16),a=n(29),r=n(15),o=n(18),c=n(11),u=Object.getOwnPropertyDescriptor;t.f=n(12)?u:function(e,t){if(e=a(e),t=r(t,!0),c)try{return u(e,t)}catch(e){}if(o(e,t))return i(!s.f.call(e,t),e[t])}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var s=n(4),i=n(6),a=n(13);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],r={};r[e]=t(n),s(s.S+s.F*a(function(){n(1)}),"Object",r)}},function(e,t,n){var s=n(47),i=n(48);n(45)("getPrototypeOf",function(){return function(e){return i(s(e))}})},function(e,t,n){var s=n(32);e.exports=function(e){return Object(s(e))}},function(e,t,n){var s=n(18),i=n(47),a=n(37)("IE_PROTO"),r=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),s(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?r:null}},function(e,t,n){var s=n(47),i=n(27);n(45)("keys",function(){return function(e){return i(s(e))}})},function(e,t,n){n(45)("getOwnPropertyNames",function(){return n(51).f})},function(e,t,n){var s=n(29),i=n(52).f,a={}.toString,r="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],o=function(e){try{return i(e)}catch(e){return r.slice()}};e.exports.f=function(e){return r&&"[object Window]"==a.call(e)?o(e):i(s(e))}},function(e,t,n){var s=n(28),i=n(38).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return s(e,i)}},function(e,t,n){var s=n(10),i=n(54).onFreeze;n(45)("freeze",function(e){return function(t){return e&&s(t)?e(i(t)):t}})},function(e,t,n){var s=n(19)("meta"),i=n(10),a=n(18),r=n(8).f,o=0,c=Object.isExtensible||function(){return!0},u=!n(13)(function(){return c(Object.preventExtensions({}))}),l=function(e){r(e,s,{value:{i:"O"+ ++o,w:{}}})},d=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,s)){if(!c(e))return"F";if(!t)return"E";l(e)}return e[s].i},f=function(e,t){if(!a(e,s)){if(!c(e))return!0;if(!t)return!1;l(e)}return e[s].w},g=function(e){return u&&p.NEED&&c(e)&&!a(e,s)&&l(e),e},p=e.exports={KEY:s,NEED:!1,fastKey:d,getWeak:f,onFreeze:g}},function(e,t,n){var s=n(10),i=n(54).onFreeze;n(45)("seal",function(e){return function(t){return e&&s(t)?e(i(t)):t}})},function(e,t,n){var s=n(10),i=n(54).onFreeze;n(45)("preventExtensions",function(e){return function(t){return e&&s(t)?e(i(t)):t}})},function(e,t,n){var s=n(10);n(45)("isFrozen",function(e){return function(t){return!s(t)||!!e&&e(t)}})},function(e,t,n){var s=n(10);n(45)("isSealed",function(e){return function(t){return!s(t)||!!e&&e(t)}})},function(e,t,n){var s=n(10);n(45)("isExtensible",function(e){return function(t){return!!s(t)&&(!e||e(t))}})},function(e,t,n){var s=n(4);s(s.P,"Function",{bind:n(61)})},function(e,t,n){"use strict";var s=n(24),i=n(10),a=n(62),r=[].slice,o={},c=function(e,t,n){if(!(t in o)){for(var s=[],i=0;iS;S++)if((f||S in _)&&(b=_[S],y=v(b,S,m),e))if(n)P[S]=y;else if(y)switch(e){case 3:return!0;case 5:return b;case 6:return S;case 2:P.push(b)}else if(l)return!1;return d?-1:u||l?l:P}}},function(e,t,n){var s=n(72);e.exports=function(e,t){return new(s(e))(t)}},function(e,t,n){var s=n(10),i=n(64),a=n(73)("species");e.exports=function(e){var t;return i(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!i(t.prototype)||(t=void 0),s(t)&&(t=t[a],null===t&&(t=void 0))),void 0===t?Array:t}},function(e,t,n){var s=n(21)("wks"),i=n(19),a=n(5).Symbol,r="function"==typeof a,o=e.exports=function(e){return s[e]||(s[e]=r&&a[e]||(r?a:i)("Symbol."+e))};o.store=s},function(e,t,n){"use strict";var s=n(4),i=n(70)(1);s(s.P+s.F*!n(66)([].map,!0),"Array",{map:function(e){return i(this,e,arguments[1])}})},function(e,t,n){"use strict";var s=n(4),i=n(70)(2);s(s.P+s.F*!n(66)([].filter,!0),"Array",{filter:function(e){return i(this,e,arguments[1])}})},function(e,t,n){"use strict";var s=n(4),i=n(70)(3);s(s.P+s.F*!n(66)([].some,!0),"Array",{some:function(e){return i(this,e,arguments[1])}})},function(e,t,n){"use strict";var s=n(4),i=n(70)(4);s(s.P+s.F*!n(66)([].every,!0),"Array",{every:function(e){return i(this,e,arguments[1])}})},function(e,t,n){"use strict";var s=n(4),i=n(79);s(s.P+s.F*!n(66)([].reduce,!0),"Array",{reduce:function(e){return i(this,e,arguments.length,arguments[1],!1)}})},function(e,t,n){var s=n(24),i=n(47),a=n(30),r=n(34);e.exports=function(e,t,n,o,c){s(t);var u=i(e),l=a(u),d=r(u.length),f=c?d-1:0,g=c?-1:1;if(n<2)for(;;){if(f in l){o=l[f],f+=g;break}if(f+=g,c?f<0:d<=f)throw TypeError("Reduce of empty array with no initial value")}for(;c?f>=0:d>f;f+=g)f in l&&(o=t(o,l[f],f,u));return o}},function(e,t,n){"use strict";var s=n(4),i=n(79);s(s.P+s.F*!n(66)([].reduceRight,!0),"Array",{reduceRight:function(e){return i(this,e,arguments.length,arguments[1],!0)}})},function(e,t,n){"use strict";var s=n(4),i=n(33)(!1),a=[].indexOf,r=!!a&&1/[1].indexOf(1,-0)<0;s(s.P+s.F*(r||!n(66)(a)),"Array",{indexOf:function(e){return r?a.apply(this,arguments)||0:i(this,e,arguments[1])}})},function(e,t,n){"use strict";var s=n(4),i=n(29),a=n(35),r=n(34),o=[].lastIndexOf,c=!!o&&1/[1].lastIndexOf(1,-0)<0;s(s.P+s.F*(c||!n(66)(o)),"Array",{lastIndexOf:function(e){if(c)return o.apply(this,arguments)||0;var t=i(this),n=r(t.length),s=n-1;for(arguments.length>1&&(s=Math.min(s,a(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in t&&t[s]===e)return s||0;return-1}})},function(e,t,n){"use strict";var s=n(4),i=n(35),a=n(84),r=n(85),o=1..toFixed,c=Math.floor,u=[0,0,0,0,0,0],l="Number.toFixed: incorrect invocation!",d="0",f=function(e,t){for(var n=-1,s=t;++n<6;)s+=e*u[n],u[n]=s%1e7,s=c(s/1e7)},g=function(e){for(var t=6,n=0;--t>=0;)n+=u[t],u[t]=c(n/e),n=n%e*1e7},p=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==u[e]){var n=String(u[e]);t=""===t?n:t+r.call(d,7-n.length)+n}return t},b=function(e,t,n){return 0===t?n:t%2===1?b(e,t-1,n*e):b(e*e,t/2,n)},y=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t};s(s.P+s.F*(!!o&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(13)(function(){o.call({})})),"Number",{toFixed:function(e){var t,n,s,o,c=a(this,l),u=i(e),m="",_=d;if(u<0||u>20)throw RangeError(l);if(c!=c)return"NaN";if(c<=-1e21||c>=1e21)return String(c);if(c<0&&(m="-",c=-c),c>1e-21)if(t=y(c*b(2,69,1))-69,n=t<0?c*b(2,-t,1):c/b(2,t,1),n*=4503599627370496,t=52-t,t>0){for(f(0,n),s=u;s>=7;)f(1e7,0),s-=7;for(f(b(10,s,1),0),s=t-1;s>=23;)g(1<<23),s-=23;g(1<0?(o=_.length,_=m+(o<=u?"0."+r.call(d,u-o)+_:_.slice(0,o-u)+"."+_.slice(o-u))):_=m+_,_}})},function(e,t,n){var s=n(31);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=s(e))throw TypeError(t);return+e}},function(e,t,n){"use strict";var s=n(35),i=n(32);e.exports=function(e){var t=String(i(this)),n="",a=s(e);if(a<0||a==1/0)throw RangeError("Count can't be negative");for(;a>0;(a>>>=1)&&(t+=t))1&a&&(n+=t);return n}},function(e,t,n){"use strict";var s=n(4),i=n(13),a=n(84),r=1..toPrecision;s(s.P+s.F*(i(function(){return"1"!==r.call(1,void 0)})||!i(function(){r.call({})})),"Number",{toPrecision:function(e){var t=a(this,"Number#toPrecision: incorrect invocation!");return void 0===e?r.call(t):r.call(t,e)}})},function(e,t,n){var s=n(4);s(s.S,"Date",{now:function(){return(new Date).getTime()}})},function(e,t,n){var s=n(4),i=n(89);s(s.P+s.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},function(e,t,n){"use strict";var s=n(13),i=Date.prototype.getTime,a=Date.prototype.toISOString,r=function(e){return e>9?e:"0"+e};e.exports=s(function(){return"0385-07-25T07:06:39.999Z"!=a.call(new Date(-5e13-1))})||!s(function(){a.call(new Date(NaN))})?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),n=e.getUTCMilliseconds(),s=t<0?"-":t>9999?"+":"";return s+("00000"+Math.abs(t)).slice(s?-6:-4)+"-"+r(e.getUTCMonth()+1)+"-"+r(e.getUTCDate())+"T"+r(e.getUTCHours())+":"+r(e.getUTCMinutes())+":"+r(e.getUTCSeconds())+"."+(n>99?n:"0"+r(n))+"Z"}:a},function(e,t,n){"use strict";var s=n(4),i=n(47),a=n(15);s(s.P+s.F*n(13)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(e){var t=i(this),n=a(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},function(e,t,n){var s=n(4),i=n(92);s(s.G+s.F*(parseInt!=i),{parseInt:i})},function(e,t,n){var s=n(5).parseInt,i=n(93).trim,a=n(94),r=/^[-+]?0[xX]/;e.exports=8!==s(a+"08")||22!==s(a+"0x16")?function(e,t){var n=i(String(e),3);return s(n,t>>>0||(r.test(n)?16:10))}:s},function(e,t,n){var s=n(4),i=n(32),a=n(13),r=n(94),o="["+r+"]",c="​…",u=RegExp("^"+o+o+"*"),l=RegExp(o+o+"*$"),d=function(e,t,n){var i={},o=a(function(){return!!r[e]()||c[e]()!=c}),u=i[e]=o?t(f):r[e];n&&(i[n]=u),s(s.P+s.F*o,"String",i)},f=d.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(u,"")),2&t&&(e=e.replace(l,"")),e};e.exports=d},function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(e,t,n){var s=n(4),i=n(96);s(s.G+s.F*(parseFloat!=i),{parseFloat:i})},function(e,t,n){var s=n(5).parseFloat,i=n(93).trim;e.exports=1/s(n(94)+"-0")!==-(1/0)?function(e){var t=i(String(e),3),n=s(t);return 0===n&&"-"==t.charAt(0)?-0:n}:s},function(e,t,n){"use strict";n(93)("trim",function(e){return function(){return e(this,3)}})},function(e,t,n){"use strict";n(99);var s=n(9),i=n(100),a=n(12),r="toString",o=/./[r],c=function(e){n(17)(RegExp.prototype,r,e,!0)};n(13)(function(){return"/a/b"!=o.call({source:"a",flags:"b"})})?c(function(){var e=s(this);return"/".concat(e.source,"/","flags"in e?e.flags:!a&&e instanceof RegExp?i.call(e):void 0)}):o.name!=r&&c(function(){return o.call(this)})},function(e,t,n){n(12)&&"g"!=/./g.flags&&n(8).f(RegExp.prototype,"flags",{configurable:!0,get:n(100)})},function(e,t,n){"use strict";var s=n(9);e.exports=function(){var e=s(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){var s=n(4);s(s.S+s.F,"Object",{assign:n(102)})},function(e,t,n){"use strict";var s=n(12),i=n(27),a=n(103),r=n(44),o=n(47),c=n(30),u=Object.assign;e.exports=!u||n(13)(function(){var e={},t={},n=Symbol(),s="abcdefghijklmnopqrst";return e[n]=7,s.split("").forEach(function(e){t[e]=e}),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=s})?function(e,t){for(var n=o(e),u=arguments.length,l=1,d=a.f,f=r.f;u>l;)for(var g,p=c(arguments[l++]),b=d?i(p).concat(d(p)):i(p),y=b.length,m=0;y>m;)g=b[m++],s&&!f.call(p,g)||(n[g]=p[g]);return n}:u},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){"use strict";var s=n(4),i=n(34),a=n(105),r="endsWith",o=""[r];s(s.P+s.F*n(107)(r),"String",{endsWith:function(e){var t=a(this,e,r),n=arguments.length>1?arguments[1]:void 0,s=i(t.length),c=void 0===n?s:Math.min(i(n),s),u=String(e);return o?o.call(t,u,c):t.slice(c-u.length,c)===u}})},function(e,t,n){var s=n(106),i=n(32);e.exports=function(e,t,n){if(s(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},function(e,t,n){var s=n(10),i=n(31),a=n(73)("match");e.exports=function(e){var t;return s(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==i(e))}},function(e,t,n){var s=n(73)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[s]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t,n){"use strict";var s=n(4),i=n(105),a="includes";s(s.P+s.F*n(107)(a),"String",{includes:function(e){return!!~i(this,e,a).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var s=n(110),i=n(124),a="Map";e.exports=n(125)(a,function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=s.getEntry(i(this,a),e);return t&&t.v},set:function(e,t){return s.def(i(this,a),0===e?0:e,t)}},s,!0)},function(e,t,n){"use strict";var s=n(8).f,i=n(25),a=n(111),r=n(23),o=n(112),c=n(113),u=n(119),l=n(122),d=n(123),f=n(12),g=n(54).fastKey,p=n(124),b=f?"_s":"size",y=function(e,t){var n,s=g(t);if("F"!==s)return e._i[s];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,u){var l=e(function(e,s){o(e,l,t,"_i"),e._t=t,e._i=i(null),e._f=void 0,e._l=void 0,e[b]=0,void 0!=s&&c(s,n,e[u],e)});return a(l.prototype,{clear:function(){for(var e=p(this,t),n=e._i,s=e._f;s;s=s.n)s.r=!0,s.p&&(s.p=s.p.n=void 0),delete n[s.i];e._f=e._l=void 0,e[b]=0},delete:function(e){var n=p(this,t),s=y(n,e);if(s){var i=s.n,a=s.p;delete n._i[s.i],s.r=!0,a&&(a.n=i),i&&(i.p=a),n._f==s&&(n._f=i),n._l==s&&(n._l=a),n[b]--}return!!s},forEach:function(e){p(this,t);for(var n,s=r(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(s(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!y(p(this,t),e)}}),f&&s(l.prototype,"size",{get:function(){return p(this,t)[b]}}),l},def:function(e,t,n){var s,i,a=y(e,t);return a?a.v=n:(e._l=a={i:i=g(t,!0),k:t,v:n,p:s=e._l,n:void 0,r:!1},e._f||(e._f=a),s&&(s.n=a),e[b]++,"F"!==i&&(e._i[i]=a)),e},getEntry:y,setStrong:function(e,t,n){u(e,t,function(e,n){this._t=p(e,t),this._k=n,this._l=void 0},function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?"keys"==t?l(0,n.k):"values"==t?l(0,n.v):l(0,[n.k,n.v]):(e._t=void 0,l(1))},n?"entries":"values",!n,!0),d(t)}}},function(e,t,n){var s=n(17);e.exports=function(e,t,n){for(var i in t)s(e,i,t[i],n);return e}},function(e,t){e.exports=function(e,t,n,s){if(!(e instanceof t)||void 0!==s&&s in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var s=n(23),i=n(114),a=n(115),r=n(9),o=n(34),c=n(117),u={},l={},t=e.exports=function(e,t,n,d,f){var g,p,b,y,m=f?function(){return e}:c(e),_=s(n,d,t?2:1),v=0;if("function"!=typeof m)throw TypeError(e+" is not iterable!");if(a(m)){for(g=o(e.length);g>v;v++)if(y=t?_(r(p=e[v])[0],p[1]):_(e[v]),y===u||y===l)return y}else for(b=m.call(e);!(p=b.next()).done;)if(y=i(b,_,p.value,t),y===u||y===l)return y};t.BREAK=u,t.RETURN=l},function(e,t,n){var s=n(9);e.exports=function(e,t,n,i){try{return i?t(s(n)[0],n[1]):t(n)}catch(t){var a=e.return;throw void 0!==a&&s(a.call(e)),t}}},function(e,t,n){var s=n(116),i=n(73)("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(s.Array===e||a[i]===e)}},function(e,t){e.exports={}},function(e,t,n){var s=n(118),i=n(73)("iterator"),a=n(116);e.exports=n(6).getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||a[s(e)]}},function(e,t,n){var s=n(31),i=n(73)("toStringTag"),a="Arguments"==s(function(){return arguments}()),r=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=r(t=Object(e),i))?n:a?s(t):"Object"==(o=s(t))&&"function"==typeof t.callee?"Arguments":o}},function(e,t,n){"use strict";var s=n(22),i=n(4),a=n(17),r=n(7),o=n(116),c=n(120),u=n(121),l=n(48),d=n(73)("iterator"),f=!([].keys&&"next"in[].keys()),g="@@iterator",p="keys",b="values",y=function(){return this};e.exports=function(e,t,n,m,_,v,h){c(n,t,m);var S,P,k,A=function(e){if(!f&&e in I)return I[e];switch(e){case p:return function(){return new n(this,e)};case b:return function(){return new n(this,e)}}return function(){return new n(this,e)}},E=t+" Iterator",T=_==b,w=!1,I=e.prototype,x=I[d]||I[g]||_&&I[_],C=x||A(_),L=_?T?A("entries"):C:void 0,N="Array"==t?I.entries||x:x;if(N&&(k=l(N.call(new e)),k!==Object.prototype&&k.next&&(u(k,E,!0),s||"function"==typeof k[d]||r(k,d,y))),T&&x&&x.name!==b&&(w=!0,C=function(){return x.call(this)}),s&&!h||!f&&!w&&I[d]||r(I,d,C),o[t]=C,o[E]=y,_)if(S={values:T?C:A(b),keys:v?C:A(p),entries:L},h)for(P in S)P in I||a(I,P,S[P]);else i(i.P+i.F*(f||w),t,S);return S}},function(e,t,n){"use strict";var s=n(25),i=n(16),a=n(121),r={};n(7)(r,n(73)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=s(r,{next:i(1,n)}),a(e,t+" Iterator")}},function(e,t,n){var s=n(8).f,i=n(18),a=n(73)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,a)&&s(e,a,{configurable:!0,value:t})}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){"use strict";var s=n(5),i=n(8),a=n(12),r=n(73)("species");e.exports=function(e){var t=s[e];a&&t&&!t[r]&&i.f(t,r,{configurable:!0,get:function(){return this}})}},function(e,t,n){var s=n(10);e.exports=function(e,t){if(!s(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,n){"use strict";var s=n(5),i=n(4),a=n(17),r=n(111),o=n(54),c=n(113),u=n(112),l=n(10),d=n(13),f=n(126),g=n(121),p=n(127);e.exports=function(e,t,n,b,y,m){var _=s[e],v=_,h=y?"set":"add",S=v&&v.prototype,P={},k=function(e){var t=S[e];a(S,e,"delete"==e?function(e){return!(m&&!l(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(m&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return m&&!l(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof v&&(m||S.forEach&&!d(function(){(new v).entries().next()}))){var A=new v,E=A[h](m?{}:-0,1)!=A,T=d(function(){A.has(1)}),w=f(function(e){new v(e)}),I=!m&&d(function(){for(var e=new v,t=5;t--;)e[h](t,t);return!e.has(-0)});w||(v=t(function(t,n){u(t,v,e);var s=p(new _,t,v);return void 0!=n&&c(n,y,s[h],s),s}),v.prototype=S,S.constructor=v),(T||I)&&(k("delete"),k("has"),y&&k("get")),(I||E)&&k(h),m&&S.clear&&delete S.clear}else v=b.getConstructor(t,e,y,h),r(v.prototype,n),o.NEED=!0;return g(v,e),P[e]=v,i(i.G+i.W+i.F*(v!=_),P),m||b.setStrong(v,e,y),v}},function(e,t,n){var s=n(73)("iterator"),i=!1;try{var a=[7][s]();a.return=function(){i=!0},Array.from(a,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var a=[7],r=a[s]();r.next=function(){return{done:n=!0}},a[s]=function(){return r},e(a)}catch(e){}return n}},function(e,t,n){var s=n(10),i=n(128).set;e.exports=function(e,t,n){var a,r=t.constructor;return r!==n&&"function"==typeof r&&(a=r.prototype)!==n.prototype&&s(a)&&i&&i(e,a),e}},function(e,t,n){var s=n(10),i=n(9),a=function(e,t){if(i(e),!s(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,s){try{s=n(23)(Function.call,n(43).f(Object.prototype,"__proto__").set,2),s(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return a(e,n),t?e.__proto__=n:s(e,n),e}}({},!1):void 0),check:a}},function(e,t,n){"use strict";var s=n(4),i=n(33)(!0);s(s.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(130)("includes")},function(e,t,n){var s=n(73)("unscopables"),i=Array.prototype;void 0==i[s]&&n(7)(i,s,{}),e.exports=function(e){i[s][e]=!0}},function(e,t,n){n(132),n(136),e.exports=n(6).Symbol},function(e,t,n){"use strict";var s=n(5),i=n(18),a=n(12),r=n(4),o=n(17),c=n(54).KEY,u=n(13),l=n(21),d=n(121),f=n(19),g=n(73),p=n(133),b=n(134),y=n(135),m=n(64),_=n(9),v=n(10),h=n(47),S=n(29),P=n(15),k=n(16),A=n(25),E=n(51),T=n(43),w=n(103),I=n(8),x=n(27),C=T.f,L=I.f,N=E.f,O=s.Symbol,D=s.JSON,B=D&&D.stringify,R="prototype",U=g("_hidden"),F=g("toPrimitive"),M={}.propertyIsEnumerable,G=l("symbol-registry"),j=l("symbols"),K=l("op-symbols"),V=Object[R],W="function"==typeof O&&!!w.f,z=s.QObject,q=!z||!z[R]||!z[R].findChild,H=a&&u(function(){return 7!=A(L({},"a",{get:function(){return L(this,"a",{value:7}).a}})).a})?function(e,t,n){var s=C(V,t);s&&delete V[t],L(e,t,n),s&&e!==V&&L(V,t,s)}:L,Y=function(e){var t=j[e]=A(O[R]);return t._k=e,t},$=W&&"symbol"==typeof O.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof O},J=function(e,t,n){return e===V&&J(K,t,n),_(e),t=P(t,!0),_(n),i(j,t)?(n.enumerable?(i(e,U)&&e[U][t]&&(e[U][t]=!1),n=A(n,{enumerable:k(0,!1)})):(i(e,U)||L(e,U,k(1,{})),e[U][t]=!0),H(e,t,n)):L(e,t,n)},X=function(e,t){_(e);for(var n,s=y(t=S(t)),i=0,a=s.length;a>i;)J(e,n=s[i++],t[n]);return e},Z=function(e,t){return void 0===t?A(e):X(A(e),t)},Q=function(e){var t=M.call(this,e=P(e,!0));return!(this===V&&i(j,e)&&!i(K,e))&&(!(t||!i(this,e)||!i(j,e)||i(this,U)&&this[U][e])||t)},ee=function(e,t){if(e=S(e),t=P(t,!0),e!==V||!i(j,t)||i(K,t)){var n=C(e,t);return!n||!i(j,t)||i(e,U)&&e[U][t]||(n.enumerable=!0),n}},te=function(e){for(var t,n=N(S(e)),s=[],a=0;n.length>a;)i(j,t=n[a++])||t==U||t==c||s.push(t);return s},ne=function(e){for(var t,n=e===V,s=N(n?K:S(e)),a=[],r=0;s.length>r;)!i(j,t=s[r++])||n&&!i(V,t)||a.push(j[t]);return a};W||(O=function(){if(this instanceof O)throw TypeError("Symbol is not a constructor!");var e=f(arguments.length>0?arguments[0]:void 0),t=function(n){this===V&&t.call(K,n),i(this,U)&&i(this[U],e)&&(this[U][e]=!1),H(this,e,k(1,n))};return a&&q&&H(V,e,{configurable:!0,set:t}),Y(e)},o(O[R],"toString",function(){return this._k}),T.f=ee,I.f=J,n(52).f=E.f=te,n(44).f=Q,w.f=ne,a&&!n(22)&&o(V,"propertyIsEnumerable",Q,!0),p.f=function(e){return Y(g(e))}),r(r.G+r.W+r.F*!W,{Symbol:O});for(var se="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ie=0;se.length>ie;)g(se[ie++]);for(var ae=x(g.store),re=0;ae.length>re;)b(ae[re++]);r(r.S+r.F*!W,"Symbol",{for:function(e){return i(G,e+="")?G[e]:G[e]=O(e)},keyFor:function(e){if(!$(e))throw TypeError(e+" is not a symbol!");for(var t in G)if(G[t]===e)return t},useSetter:function(){q=!0},useSimple:function(){q=!1}}),r(r.S+r.F*!W,"Object",{create:Z,defineProperty:J,defineProperties:X,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:ne});var oe=u(function(){w.f(1)});r(r.S+r.F*oe,"Object",{getOwnPropertySymbols:function(e){return w.f(h(e))}}),D&&r(r.S+r.F*(!W||u(function(){var e=O();return"[null]"!=B([e])||"{}"!=B({a:e})||"{}"!=B(Object(e))})),"JSON",{stringify:function(e){for(var t,n,s=[e],i=1;arguments.length>i;)s.push(arguments[i++]);if(n=t=s[1],(v(t)||void 0!==e)&&!$(e))return m(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!$(t))return t}),s[1]=t,B.apply(D,s)}}),O[R][F]||n(7)(O[R],F,O[R].valueOf),d(O,"Symbol"),d(Math,"Math",!0),d(s.JSON,"JSON",!0)},function(e,t,n){t.f=n(73)},function(e,t,n){var s=n(5),i=n(6),a=n(22),r=n(133),o=n(8).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=a?{}:s.Symbol||{});"_"==e.charAt(0)||e in t||o(t,e,{value:r.f(e)})}},function(e,t,n){var s=n(27),i=n(103),a=n(44);e.exports=function(e){var t=s(e),n=i.f;if(n)for(var r,o=n(e),c=a.f,u=0;o.length>u;)c.call(e,r=o[u++])&&t.push(r); return t}},function(e,t,n){"use strict";var s=n(118),i={};i[n(73)("toStringTag")]="z",i+""!="[object z]"&&n(17)(Object.prototype,"toString",function(){return"[object "+s(this)+"]"},!0)},function(e,t,n){n(138),n(140),e.exports=n(133).f("iterator")},function(e,t,n){"use strict";var s=n(139)(!0);n(119)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=s(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){var s=n(35),i=n(32);e.exports=function(e){return function(t,n){var a,r,o=String(i(t)),c=s(n),u=o.length;return c<0||c>=u?e?"":void 0:(a=o.charCodeAt(c),a<55296||a>56319||c+1===u||(r=o.charCodeAt(c+1))<56320||r>57343?e?o.charAt(c):a:e?o.slice(c,c+2):(a-55296<<10)+(r-56320)+65536)}}},function(e,t,n){for(var s=n(141),i=n(27),a=n(17),r=n(5),o=n(7),c=n(116),u=n(73),l=u("iterator"),d=u("toStringTag"),f=c.Array,g={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(g),b=0;b=e.length?(this._t=void 0,i(1)):"keys"==t?i(0,n):"values"==t?i(0,e[n]):i(0,[n,e[n]])},"values"),a.Arguments=a.Array,s("keys"),s("values"),s("entries")},function(e,t,n){"use strict";var s=n(143),i=function(){s.addHtmlTagClass("bbcdotcom")};e.exports=i},function(e,t,n){"use strict";var s=n(144)("utils"),i=[],a=function(e,t,n){if("undefined"!=typeof e&&""!==e&&null!==e){var s=new RegExp("(\\s|^)"+n+"(\\s|$)");return e[t].match(s)}},r=function(e,t){var n,s=document.getElementsByTagName(e)[0];return"undefined"!=typeof s&&""!==s&&null!==s&&"string"==typeof t&&(n=a(s,"id",t),null!==n)},o=function(e,t,n,s){var i,a=!1,r=0;if(!e)return!1;for(s="number"==typeof s?s:10,n=n===!0,i=n?e:e.parentNode;i&&r0){a=i;break}if(o<0)break;i=i.parentNode,r++}return a},c=function(){return window.location.hostname.indexOf(".bbc.com")!==-1?"bbc.com":window.location.hostname.indexOf(".bbc.co.uk")!==-1?"bbc.co.uk":window.location.hostname};e.exports={debounce:function(e,t,n){var s;return function(){var i=this,a=arguments,r=function(){s=null,n||e.apply(i,a)},o=n&&!s;clearTimeout(s),s=setTimeout(r,t),o&&e.apply(i,a)}},appendLinkToHead:function(e){var t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("link");n.type="text/css",n.rel="stylesheet",n.href=e,t.appendChild(n)},capitalize:function(e){if("undefined"!=typeof e){var t,n,s=e.split(" ");for(t=0;t2&&(n=s[t].charAt(0).toUpperCase(),s[t]=n+s[t].substr(1));return s.join(" ")}},log:function(){s.warn("utils.log is deprecated",arguments)},addTagClass:function(e,t){if("undefined"!=typeof e&&""!==e&&null!==e&&"string"==typeof t&&""!==t)return a(e,"className",t)||(e.className=e.className+" "+t),e.className},removeTagClass:function(e,t){var n;if("undefined"!=typeof e&&""!==e&&null!==e&&"string"==typeof t&&""!==t)return a(e,"className",t)&&(n=RegExp(t+"\\b"),e.className=e.className.replace(n,"").replace(" "," ")),e.className},addBodyTagClass:function(e){var t=document.getElementsByTagName("body")[0];return this.addTagClass(t,e)},removeBodyTagClass:function(e){var t=document.getElementsByTagName("body")[0];return this.removeTagClass(t,e)},addHtmlTagClass:function(e){var t=document.getElementsByTagName("html")[0];return this.addTagClass(t,e)},removeHtmlTagClass:function(e){var t=document.getElementsByTagName("html")[0];return this.removeTagClass(t,e)},hasBodyTagId:function(e){return r("body",e)},getUriParamByName:function(e,t){if(t=t!==!1,"undefined"==typeof e)return"";e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var n=new RegExp("[\\?&]"+e+"=([^&#]*)"),s=n.exec(bbcdotcom.config.getWindowLocation().search);return null===s?"":decodeURIComponent(t?s[1].replace(/[^a-zA-Z0-9\-_]/g,""):s[1])},isDebug:function(){return/[?|&]ads-debug/.test(window.location.href)||document.cookie.indexOf("ads-debug=")!==-1},isDebugTrace:function(){return/[?|&]ads-debug-trace/.test(window.location.href)||document.cookie.indexOf("ads-debug-trace=")!==-1},getEnv:function(){var e=bbcdotcom.config.getWindowLocation();if(/[a-z]+\-test[0-9]+\.bbc.*\.com/.test(e.href))return"test";var t=e.href.match(/(sandbox|int|test|stage)(.dev)*.bbc.co*/);return null===t?"live":t[1]},isLiveEnv:function(){return"live"===this.getEnv()},isTestEnv:function(){return"live"!==this.getEnv()&&"stage"!==this.getEnv()},stackTrace:function(){var e=new Error;window.console.log(e.stack)},getParentElementByClass:function(e,t,n,s){s="undefined"!=typeof s&&s===!0;var i="undefined"==typeof n||0===n?5:n,a=function(e){return!e||"undefined"==typeof e.className||"undefined"==typeof e.tagName||s&&"body"===e.tagName.toLowerCase()?-1:e.className.indexOf(t)!==-1?1:void 0};return o(e,a,!1,i)},getClosestElementByTagName:function(e,t,n,s){return o(e,function(e){return e&&e.tagName&&e.tagName.toLowerCase()===t?1:0},n,s)},getParentElementByAttribute:function(e,t,n){return o(e,function(e){return e&&null!==e.getAttribute(t)?1:0},n)},parentHasClass:function(e,t,n,s){return this.getParentElementByClass(e,t,n,s)!==!1},getAnchorPositionWithinElement:function(e,t){var n,s,i;if(e&&t)for(s=e.getElementsByTagName("a"),i=new RegExp(t+"$"),n=0;n=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function a(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var s="color: "+this.color;e.splice(1,0,s,"color: inherit");var i=0,a=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(i++,"%c"===e&&(a=i))}),e.splice(a,0,s)}}function r(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function o(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}}function c(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!=typeof s&&"env"in s&&(e=s.env.DEBUG),e}function u(){try{return window.localStorage}catch(e){}}t=e.exports=n(147),t.log=r,t.formatArgs=a,t.save=o,t.load=c,t.useColors=i,t.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:u(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(c())}).call(t,n(146))},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function i(e){if(l===setTimeout)return setTimeout(e,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function a(e){if(d===clearTimeout)return clearTimeout(e);if((d===s||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function r(){b&&g&&(b=!1,g.length?p=g.concat(p):y=-1,p.length&&o())}function o(){if(!b){var e=i(r);b=!0;for(var t=p.length;t;){for(g=p,p=[];++y1)for(var n=1;n100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]),s=(t[2]||"ms").toLowerCase();switch(s){case"years":case"year":case"yrs":case"yr":case"y":return n*l;case"days":case"day":case"d":return n*u;case"hours":case"hour":case"hrs":case"hr":case"h":return n*c;case"minutes":case"minute":case"mins":case"min":case"m":return n*o;case"seconds":case"second":case"secs":case"sec":case"s":return n*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function s(e){return e>=u?Math.round(e/u)+"d":e>=c?Math.round(e/c)+"h":e>=o?Math.round(e/o)+"m":e>=r?Math.round(e/r)+"s":e+"ms"}function i(e){return a(e,u,"day")||a(e,c,"hour")||a(e,o,"minute")||a(e,r,"second")||e+" ms"}function a(e,t,n){if(!(e0)return n(e);if("number"===a&&isNaN(e)===!1)return t.long?i(e):s(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){"use strict";var s=n(150),i=n(143),a=n(152),r=n(153),o=n(154),c=n(155),u=n(156),l=n(197),d=n(198),f=n(209),g=n(200),p=n(208),b=n(201),y=n(204),m=n(207),_=n(176),v=n(261),h=n(199),S=n(203),P=n(262),k=n(171),A=n(263),E=n(144)("init"),T=n(264);e.exports=function(e){try{var t,n,w,I,x=s.getWindowLocation(),C=s.getWindowDocument();if(E.info("bbcdotcom.init() with params: ",e),i.addHtmlTagClass(c.classNames("init","responsive")),P.init(),s.isAdsEnabled()&&(!s.isSportApp()||s.isSportApp()&&s.isAdsportappEnabled())){if(bbcdotcom.initCalled){if(e.adsToDisplay&&(I=m.build(e.adsToDisplay)))for(window.bbcdotcom.adsToDisplay=I,n=0,w=I.length;n0&&void 0!==arguments[0]?arguments[0]:[];return b.daxEnvironments=e,this}},{key:"getDaxEnvironments",value:function(){return b.daxEnvironments}},{key:"getAnalyticsSuite",value:function(e){var t=r(b.windowLocation.href);return this.isSportApp()?t?d.COMSCORE.APP_SUITE_TEST:d.COMSCORE.APP_SUITE_LIVE:t?d.COMSCORE.WEBSITE_SUITE_TEST:d.COMSCORE.WEBSITE_SUITE_LIVE}},{key:"getAnalyticsAcctId",value:function(){return r(b.windowLocation.href)?d.COMSCORE.CUSTOMER_ID_TEST:d.COMSCORE.CUSTOMER_ID_LIVE}},{key:"r",value:function(){this.setWindowLocation(i()),this.setWindowDocument(a()),this.setReferrer(""),this.setSections([]),b.settings={ads:!0,analytics:!0,comScore:!0},this.setIE7(!1),this.setIE8(!1),this.setAssetPrefix(""),this.setOutbrainEnabled(!0),this.setAdsenseEnabled(!0),this.setAdsportappEnabled(!1),this.setStickyPlayerPage(!1),this.setContinuousPlayPage(!1),this.setLotameActive(!1),this.setHeadline(""),this.setType("")}}]),e}();t.default=new y,e.exports=t.default},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.PAL_ENV_LIVE="live",t.PAL_ENV_STAGE="stage",t.PAL_ENV_TEST="test",t.PAL_ENV_INT="int",t.PAL_ENV_SANDBOX="sandbox"},function(e,t,n){"use strict";var s=n(150),i=[],a=[],r=[],o=function(e){var t=new RegExp("^(afaanoromoo|afrique|amharic|arabic|azeri|bengali|burmese|gahuza|gujarati|hausa|hindi|igbo|indonesia|korean|kyrgyz|japanese|marathi|mundo|naidheachdan|nepali|newyddion|pashto|persian|pidgin|portuguese|punjabi|russian|serbian|sinhala|somali|swahili|tajik|tamil|telugu|thai|tigrinya|turkce|ukchina|ukrainian|urdu|uzbek|vietnamese|yoruba|zhongwen)");return e.replace(/\?.*$/,"").replace(/\#.*$/,"").replace(/^news\/0/,"news").replace(/^weather\/0/,"weather").replace(/^news\/(uk|world|us|asia)\/(health)(?!-)/,"news/$2").replace(/^(news\/av\/)(.*)\/[^\/]+$/,"$1$2").replace(/^news\/av\//,"news/").replace(/(_|\-|\/)?[A-Z0-9]{7,8}$/,"").replace(/\/[a-z0-9]+\.stm/,"").replace(/_and_/,"-").replace(/_/g,"-").replace(/^news\/(england|northern-ireland|scotland|wales)($|-|\/)/,"news/uk/$1$2").replace(/^news\/uk-([a-z]+)(-([a-z]+))?/,"news/uk/$1/$3").replace(/^news\/(world)-(africa|asia|europe)(-([a-z]+))?/,"news/$1/$2/$4").replace(/^news\/(world)-([a-z\-]+)/,"news/$1/$2/").replace(/^(newsbeat)($|-|\/)/,"news/$1$2").replace(/^sport\/0/,"sport").replace(/^sport\/beta/,"sport").replace(/^sport\/av\//,"sport/").replace(/^sport\/(world|uk)/,"sport").replace(/^sport\/(.*)\/sports($|\/)/,"sport/$1$2").replace(/market-data\/overview/,"market-data").replace(/^(programmes)/,"news/$1").replace(t,"worldservice/$1").replace(/^wwhp/,"").replace(/\.app$/,"").replace(/:\d+(?=\/)/,"").replace(/\/+$/,"")},c=function(e){return e=e.replace(/^news\/world\/([a-z]+)(-([a-z]+))?/,"news/world$1$3").replace(/programmes\/asiabusinessreport/,"asiabusiness").replace(/programmes\/click$/,"clickonline").replace(/worldservice\//,""),e.split("/")},u=function(e){return e=e.replace(/^specialfeatures/,"news/specialfeatures").replace(/^sport\/(.*)\/(20[0-9]{2})($|\/)/,"sport/$1-$2$3"),e.split("/")},l=function(e,t){var n,l="",d=[],f=[],g=[],p="unknown";if("undefined"!=typeof t)n=t.match(/http(|s):\/\/[a-z0-9\-.]+(.com|.co.uk|.net)(\/)?(.*)?/),n?l=n[n.length-1]:(n=t.match(/^\/(.*)?/),l=n?n[n.length-1]:p);else if(0===s.getSections().length){var b=bbcdotcom.analyticsHelper.getUriForSections();"undefined"==typeof b||""===b||null===b||0!==b.indexOf("http")?l=p:(n=b.match(/http(|s):\/\/[a-z0-9\-.]+(.com|.co.uk|.net)(\/)?(.*)?/),l=n?n[n.length-1]:p)}else l=s.getSections().join("/");return l=l||"",l=o(l),""===l?d=f=g=["homepage"]:(d=l.split("/"),f=c(l),g=u(l)),e&&(i=d,a=f,r=g),[d,f,g]},d=function(e){return e="undefined"==typeof e?"":e,"advert"===e?a:"analytics"===e?r:i};e.exports={build:l,getSection:function(e,t,n){return"undefined"!=typeof e&&("undefined"!=typeof n&&n===!0&&l(!0),e=parseInt(e,10),"undefined"!=typeof d(t)&&"undefined"!=typeof d(t)[e]&&""!==d(t)[e])&&d(t)[e]},getSections:function(e,t){return"undefined"!=typeof t&&t===!0&&l(!0),d(e)},getSectionsForUri:function(e,t){e="undefined"==typeof e||null===e?"":e,t="undefined"==typeof t?"":t;var n=l(!1,e);return"advert"===t?n[1]:"analytics"===t?n[2]:n[0]},r:function(){i=[],a=[],r=[]}}},function(e,t,n){"use strict";var s=n(144)("locale"),i={advertisementText:"Advertisement",inAssociationWithText:"in association with",sponsoredByText:"is sponsored by",advertisingPartnersText:"Advertising Partners",adsByGoogleText:"Ads by Google",advertInfoPageUrl:"https://www.bbc.com/privacy/cookies/international/",associationInfoPageUrl:"https://advertising.bbcworldwide.com/bbc-storyworks-content-definitions/",googleAdsPageUrl:"https://www.bbc.co.uk/bbc.com/faq/ads_by_google.shtml"},a={am:{advertisementText:"ማስታወቂያ",advertInfoPageUrl:"http://faq.external.bbc.co.uk/questions/bbc_online/adverts_general",inAssociationWithText:"ጋር በመተባበር",sponsoredByText:"ሰፖንሰር ያደረገዉ/ችዉ/ጉት",advertisingPartnersText:"አጋሮች",adsByGoogleText:"የጉግል ማስታወቂያዎች"},ar:{advertisementText:"إعلان",advertInfoPageUrl:"/arabic/institutional/2012/06/120410_faq_help_bbc_arabic",inAssociationWithText:"بالتعاون مع",sponsoredByText:"برعاية",advertisingPartnersText:"شركاء الإعلان",adsByGoogleText:"إعلانات من غوغل"},az:{advertisementText:"Reklam",advertInfoPageUrl:"/azeri/institutional/2015/10/000000_advertising_faq.shtml",inAssociationWithText:"ilə birgə",sponsoredByText:"Sponsor: ",advertisingPartnersText:"Reklam partnyorları",adsByGoogleText:"Google reklamı"},bn:{advertisementText:"বিজ্ঞাপন",advertInfoPageUrl:"/bengali/institutional/2015/10/000000_advertising_faq.shtml",inAssociationWithText:"এর সহযোগিতায়",sponsoredByText:"এর সৌজন্যে",advertisingPartnersText:"বিজ্ঞাপন সহযোগী",adsByGoogleText:"গুগল-এর বিজ্ঞাপন"},es:{advertisementText:"Publicidad",advertInfoPageUrl:"/mundo/institucional/2012/06/000000_ayuda_sobre_publicidad",inAssociationWithText:"En asociación con",sponsoredByText:"Patrocinado por",advertisingPartnersText:"Anunciantes",adsByGoogleText:"Avisos de Google"},fa:{advertisementText:"آگهی",advertInfoPageUrl:"http://www.bbc.com/persian/institutional/2015/08/000000_advertising_faq",inAssociationWithText:"inAssociationWith",sponsoredByText:"sponsoredBy",advertisingPartnersText:"advertisingPartners",adsByGoogleText:"adsByGoogle"},fr:{advertisementText:"Publicités",advertInfoPageUrl:"/afrique/institutionelles/2015/08/000000_advertising_faq.shtml",inAssociationWithText:"inAssociationWith",sponsoredByText:"sponsoredBy",advertisingPartnersText:"advertisingPartners",adsByGoogleText:"adsByGoogle"},gu:{advertisementText:"જાહેરાત",advertInfoPageUrl:"http://faq.external.bbc.co.uk/questions/bbc_online/adverts_general",inAssociationWithText:"ના સહયોગથી",sponsoredByText:"પ્રાયોજક",advertisingPartnersText:"પાર્ટનર્સ",adsByGoogleText:"Google દ્વારાજાહેરાતો"},ha:{advertisementText:"Talla",advertInfoPageUrl:"http://www.bbc.co.uk/hausa/institutional/2015/01/000000_advertising_faqs",inAssociationWithText:"Da hadin gwiwar",sponsoredByText:"Wanda ya dauki nauyi",advertisingPartnersText:"Abokan hulda",adsByGoogleText:"Tallace-tallace daga Google"},hi:{advertisementText:"विज्ञापन",advertInfoPageUrl:"http://www.bbc.co.uk/hindi/institutional/2015/01/000000_advertising_faqs",inAssociationWithText:"के साथ",sponsoredByText:"प्रायोजक",advertisingPartnersText:"पार्टनर",adsByGoogleText:"गूगल के विज्ञापन"},id:{advertisementText:"Iklan",advertInfoPageUrl:"http://www.bbc.com/indonesia/institutional/2015/08/000000_advertising_faq",adsByGoogleText:"adsByGoogle"},ig:{advertisementText:"Mgbasa ozi",advertInfoPageUrl:"http://faq.external.bbc.co.uk/questions/bbc_online/adverts_general",inAssociationWithText:"Na njikọta nke",sponsoredByText:"Akwadoro site n'aka",advertisingPartnersText:"Ndị mmekọ",adsByGoogleText:"Mgbasa ozi nke Google"},ja:{advertisementText:"広告",advertInfoPageUrl:"/japanese/help-34287354",inAssociationWithText:"提携:",sponsoredByText:"提供:",advertisingPartnersText:"パートナー:",adsByGoogleText:"Ads by Google"},ko:{advertisementText:"광고",advertInfoPageUrl:"http://faq.external.bbc.co.uk/questions/bbc_online/adverts_general",inAssociationWithText:"관련 내용",sponsoredByText:"후원사",advertisingPartnersText:"협력사",adsByGoogleText:"Google 광고"},ky:{advertisementText:"Жарнама",advertInfoPageUrl:"/kyrgyz/institutional/2015/10/000000_advertising_faq.shtml",inAssociationWithText:"менен кызматташтыкта ",sponsoredByText:"Спонсор",advertisingPartnersText:"Жарнама партнёрлору",adsByGoogleText:"Google жарнамасы"},mr:{advertisementText:"जाहिरात",advertInfoPageUrl:"http://faq.external.bbc.co.uk/questions/bbc_online/adverts_general",inAssociationWithText:"च्या संयुक्त विद्यमाने",sponsoredByText:"च्या सौजन्याने",advertisingPartnersText:"भागीदार",adsByGoogleText:"Google द्वारे जाहिराती"},my:{advertisementText:"ကြော်ငြာ",advertInfoPageUrl:"/burmese/institutional/2015/10/000000_advertising_faq.shtml",inAssociationWithText:"နှင့် ပူးတွဲဝန်ဆောင်၍",sponsoredByText:"ကမကထပြုသူ",advertisingPartnersText:"ပူးတွဲဝန်ဆောင်သူများ",adsByGoogleText:"ဂူဂဲလ် ကြော်ငြာ"},ne:{advertisementText:"विज्ञापन",advertInfoPageUrl:"/nepali/institutional/2015/10/000000_advertising_faq.shtml",inAssociationWithText:"साथमा",sponsoredByText:"प्रायोजक",advertisingPartnersText:"प्रायोजक",adsByGoogleText:"गुगलको विज्ञापन"},om:{advertisementText:"Beeksiisa",advertInfoPageUrl:"http://faq.external.bbc.co.uk/questions/bbc_online/adverts_general",inAssociationWithText:"...Waliin ta'uun.",sponsoredByText:"Ispoonsara kan godhe...",advertisingPartnersText:"Waahillan",adsByGoogleText:"Beeksia Google'n"},pa:{advertisementText:"ਇਸ਼ਤਿਹਾਰ",advertInfoPageUrl:"http://faq.external.bbc.co.uk/questions/bbc_online/adverts_general",inAssociationWithText:"ਇਸ ਦੇ ਸਹਿਯੋਗ ਨਾਲ",sponsoredByText:"ਇਸ ਦੁਆਰਾ ਪ੍ਰਾਯੋਜਿਤ",advertisingPartnersText:"ਭਾਈਵਾਲ",adsByGoogleText:"Google ਦੁਆਰਾ ਇਸ਼ਤਿਹਾਰ"},pcm:{advertisementText:"Tori we dem pay for",advertInfoPageUrl:"http://faq.external.bbc.co.uk/questions/bbc_online/adverts_general",inAssociationWithText:"E join hand with",sponsoredByText:"De person we sponsor am",advertisingPartnersText:"Partner dem",adsByGoogleText:"Ads we Google do"},ps:{advertisementText:"اعلان",advertInfoPageUrl:"/pashto/institutional/2015/10/000000_advertising_faq.shtml",inAssociationWithText:"په ګډه",sponsoredByText:"په ملاتړ",advertisingPartnersText:"ملګري",adsByGoogleText:"د ګوګل اعلانونه"},pt:{advertisementText:"Publicidade",advertInfoPageUrl:"http://www.bbc.co.uk/portuguese/institutional/2015/01/000000_advertising_faqs",inAssociationWithText:"Em parceria com",sponsoredByText:"Com patrocínio de",advertisingPartnersText:"Parceiros",adsByGoogleText:"Anúncios do Google"},ru:{advertisementText:"Реклама",advertInfoPageUrl:"/russian/institutional/2012/12/000000_advert_uk_faq",inAssociationWithText:"В сотрудничестве с",sponsoredByText:"Спонсор:",advertisingPartnersText:"Рекламные партнеры",adsByGoogleText:"Реклама Google"},"ru-UK":{advertisementText:"Реклама",advertInfoPageUrl:"",inAssociationWithText:"В сотрудничестве с",sponsoredByText:"Спонсор:",advertisingPartnersText:"Рекламные партнеры",adsByGoogleText:"Реклама Google"},rw:{advertisementText:"Kwamamaza",advertInfoPageUrl:"/gahuza/ibindi_wifashisha/2015/08/000000_advertising_faq.shtml"},si:{advertisementText:"වෙළෙඳ දැන්වීමක් ",advertInfoPageUrl:"/sinhala/institutional/2015/10/000000_advertising_faq.shtml",inAssociationWithText:"සහභාගිත්වය ඇතිව ",sponsoredByText:"අනුග්‍රාහකත්වය ",advertisingPartnersText:"දැන්වීම් අනුග්‍රාහකයෝ",adsByGoogleText:"ගූගල් වෙළෙඳ දැන්වීම්"},so:{advertisementText:"Xayeysiin",advertInfoPageUrl:"/somali/hayadeed/2015/08/000000_advertising_faq.shtml"},sw:{advertisementText:"Matangazo",advertInfoPageUrl:"http://www.bbc.co.uk/swahili/taasisi/2015/01/000000_advertising_faqs",inAssociationWithText:"Kwa ushirikiano na",sponsoredByText:"Imedhaminiwa na",advertisingPartnersText:"Washirika",adsByGoogleText:"Matangazo ya biashara ya Google"},ta:{advertisementText:"விளம்பரம்",advertInfoPageUrl:"/tamil/institutional/2015/10/000000_advertising_faq.shtml",inAssociationWithText:"உடன் இணைந்து",sponsoredByText:"உதவியுடன்",advertisingPartnersText:"கூட்டாளிகள்",adsByGoogleText:"கூகிள் விளம்பரங்கள்"},te:{advertisementText:"వ్యాపార ప్రకటన",advertInfoPageUrl:"http://faq.external.bbc.co.uk/questions/bbc_online/adverts_general",inAssociationWithText:"వీరి సహకారంతో",sponsoredByText:"ప్రాయోజితులు",advertisingPartnersText:"భాగస్వాములు",adsByGoogleText:"గూగుల్ సమర్పిత ప్రకటనలు"},th:{advertisementText:"โฆษณา",advertInfoPageUrl:"http://faq.external.bbc.co.uk/questions/bbc_online/adverts_general",inAssociationWithText:"ด้วยความร่วมมือกับ",sponsoredByText:"สนับสนุนโดย",advertisingPartnersText:"ภาคีของเรา",adsByGoogleText:"โฆษณาโดยกูเกิล"},ti:{advertisementText:"መላለዪ",advertInfoPageUrl:"http://faq.external.bbc.co.uk/questions/bbc_online/adverts_general",inAssociationWithText:"ብምትሕግጋዝ",sponsoredByText:"መዋሊ",advertisingPartnersText:"መላፍንትና",adsByGoogleText:"ኣብ ጎግል ዝወፀ መቓልሕ"},tr:{advertisementText:"Reklam",advertInfoPageUrl:"http://www.bbc.co.uk/turkce/kurumsal/2015/01/000000_advertising_faqs",inAssociationWithText:"In association with",sponsoredByText:"Sponsor",advertisingPartnersText:"Ortakla",adsByGoogleText:"Google reklamlar"},uk:{advertisementText:"Реклама",advertInfoPageUrl:"/ukrainian/institutional/2015/10/000000_advertising_faq.shtml",inAssociationWithText:"У партнерстві з",sponsoredByText:"Спонсор: ",advertisingPartnersText:"Партнери",adsByGoogleText:"Реклама Google"},ur:{advertisementText:"اشتہار",advertInfoPageUrl:"http://www.bbc.com/urdu/institutional/2015/08/000000_advertising_faq"},uz:{advertisementText:"Реклама",advertInfoPageUrl:"/uzbek/institutional/2015/10/000000_advertising_faq.shtml",inAssociationWithText:"билан ҳамкорликда",sponsoredByText:"Ҳомий",advertisingPartnersText:"Реклама бўйича шериклар",adsByGoogleText:"Google рекламаси"},"uz-latin":{advertisementText:"Reklama",advertInfoPageUrl:"/uzbek/institutional/2015/10/000000_advertising_faq.shtml",inAssociationWithText:"bilan hamkorlikda",sponsoredByText:"Homiy",advertisingPartnersText:"Reklama bo'yicha sheriklar",adsByGoogleText:"Google reklamasi"},vi:{advertisementText:"Quảng cáo",advertInfoPageUrl:"http://www.bbc.com/vietnamese/institutional/2015/08/000000_advertising_faq"},"zh-Hans":{advertisementText:"广告",advertInfoPageUrl:"http://www.bbc.com/zhongwen/simp/institutional/2015/08/000000_advertising_faq"},"zh-Hans-UKCN":{advertisementText:"广告",advertInfoPageUrl:"http://www.bbc.com/ukchina/simp/institutional/2015/08/000000_advertising_faq"},"zh-Hant":{advertisementText:"廣告",advertInfoPageUrl:"http://www.bbc.com/zhongwen/trad/institutional/2015/08/000000_advertising_faq"},"zh-Hant-UKCN":{advertisementText:"廣告",advertInfoPageUrl:"http://www.bbc.com/ukchina/trad/institutional/2015/08/000000_advertising_faq"}};e.exports={get:function(e){return i[e]},set:function(e,t){i[e]=t},getData:function(){return i},setLocale:function(e){var t,n=e&&a[e];if(n){s.info("setting ad text to locale : ",e);for(t in n)n.hasOwnProperty(t)&&this.set(t,n[t])}}}},function(e,t){"use strict";e.exports={providers:{eDigitalResearch:{key:"INS-vt29-666188954",url:bbcdotcom.assetPrefix+"script/vendor/edr/edr.min.js"}},adsEnabled:function(){return void 0!==bbcdotcom.data&&(void 0!==bbcdotcom.data.a&&1===bbcdotcom.data.a||void 0!==bbcdotcom.data.ads&&1===bbcdotcom.data.ads)},surveyEnabled:function(){return void 0!==bbcdotcom.flag&&1===bbcdotcom.flag.s},init:function(){bbcdotcom.survey.adsEnabled()&&bbcdotcom.survey.surveyEnabled()&&"undefined"==typeof window.EDRSurvey&&bbcdotcom.survey.loadScript(document,bbcdotcom.survey.providers.eDigitalResearch.url)},loadScript:function(e,t,n){var s=e.createElement("script"),i="async",a="defer";s.setAttribute(i,i),s.setAttribute(a,a),s.type="text/javascript",s.src=t,"function"==typeof n&&(s.onload=n),e.getElementsByTagName("head")[0].appendChild(s)}}},function(e,t,n){"use strict";function s(){return[a].concat(Array.prototype.slice.call(arguments)).join(r)}function i(){var e,t=[],n=Array.prototype.slice.call(arguments);for(e=0;e0&&void 0!==arguments[0]?arguments[0]:{},t=new u.default;t.with("b_imp_src",{value:"gnl"}).with("b_vs_un",{value:"bc"}).with("ns_c",{value:"UTF-8"}),t.with("daxCorp",{mapName:"b_daxcorp"}).with("adsEnabled",{mapName:"b_ad_enabled"}).with("appType",{mapName:["b_app_type","app_type"]}).with("isApp",{mapName:"b_is_app"}).with("referrer",{mapName:"b_c9"}).with("collection",{mapName:"b_collection"}).with("edition",{mapName:"b_edition"}).with("version",{mapName:"b_imp_ver"}).with("siteCatalystCookieValue",{mapName:"b_s_vi"}).with("pageName",{mapName:["name","b_article_title"]}).with("analyticsAccountID",{mapName:"c2"}).with("analyticsSuite",{mapName:["ns_site"]}).with("appName",{mapName:["ns_ap_an","app_name"]}).with("partner",{mapName:"b_article_partner"}).with("license",{mapName:"b_article_license"});var n=(0,g.default)();t.with("b_app_name",{value:n[0]+"|web"}).with("siteChannel",{mapName:["b_site_channel","bbc_site","prod_name"],args:[n]}).with("siteSection",{mapName:"b_site_section",args:[n]}).with("siteSubsection1",{mapName:"b_site_subsec1",args:[n]}).with("siteSubsection2",{mapName:"b_site_subsec2",args:[n]});var s=(0,d.default)();t.with("ns_alias",{preRequisite:function(){return s!==!1&&o()},value:s});var i=(0,m.default)();return t.with("v37",{preRequisite:function(){return i},value:i}),Object.assign({},e,t.build())}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new u.default,n=(0,b.default)(),s=n.includes("idx"),i=n.includes("liv");return t.with("pageType",{mapName:"b_page_type",value:n}),t.with("articleID",{mapName:"b_article_id",preRequisite:function(){return!s}}).with("articleTitle",{mapName:"b_article_title",preRequisite:function(){return!s&&!i}}).with("articleUpdatedDate",{mapName:"b_article_update",preRequisite:function(){return!s},args:[!0]}).with("articlePublishedDate",{mapName:"b_article_date",preRequisite:function(){return!s},args:[!0]}).with("articleLength",{mapName:"b_article_length",preRequisite:function(){return!s}}).with("topicNames",{mapName:"b_topic_names",preRequisite:function(){return!s&&!i}}),Object.assign({},e,t.build())}function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new u.default;return t.with("timestamp",{mapName:"ns__t"}).with("ns_type",{value:"hidden"}),Object.assign({},e,t.build())}function o(){var e,t=navigator.cookieEnabled;return t===!1?t:(document.cookie="cookietest=1",e=document.cookie.indexOf("cookietest=")!==-1,document.cookie="cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT",e)}Object.defineProperty(t,"__esModule",{value:!0}),t.getCoreKeyValues=i,t.appendPageCoreKeyValues=a,t.appendNonPageCoreKeyValues=r;var c=n(158),u=s(c),l=n(196),d=s(l),f=n(184),g=s(f),p=n(182),b=s(p),y=n(190),m=s(y)},function(e,t,n){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.mapName,s=void 0===n?null:n,i=t.postProcess,a=void 0===i?null:i,r=t.preRequisite,o=void 0===r?null:r,c=t.args,u=void 0===c?[]:c,l=t.value,d=void 0===l?void 0:l;return e&&this.metrics.set(e,{mapName:s,postProcess:a,args:u,preRequisite:o,value:d}),this}},{key:"getMetric",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n="get"+(e.charAt(0).toUpperCase()+e.slice(1));if(l.default.hasOwnProperty(n))return l.default[n].apply(l.default,i(t));throw new Error("No metric helper for "+e+" ("+n+")")}},{key:"build",value:function(){var e={};return this.metrics.forEach(function(t,n){try{if(t.preRequisite&&!t.preRequisite())return;var s=void 0;if(s="undefined"!=typeof t.value?t.value:this.getMetric(n,t.args),t.postProcess&&(s=t.postProcess(s)),t.mapName){var i=t.mapName;(0,o.default)(i)||(i=[i]),i.forEach(function(t){e[t]=s})}else e[n]=s}catch(e){g.warn("Unable to build metric "+n,e)}}.bind(this)),e}}]),e}();t.default=p,e.exports=t.default},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(161),a=s(i),r=a.default.getAdsEnabled,o=a.default.getAnalyticsAccountID,c=a.default.getAnalyticsSuite,u=a.default.getAppName,l=a.default.getAppType,d=a.default.getArticleID,f=a.default.getArticleLength,g=a.default.getArticlePublishedDate,p=a.default.getArticleTitle,b=a.default.getArticleUpdatedDate,y=a.default.getCollection,m=a.default.getDaxCorp,_=a.default.getDomainFromUrl,v=a.default.getEdition,h=a.default.getIsApp,S=a.default.getPageName,P=a.default.getPageType,k=a.default.getReferrer,A=a.default.getSiteCatalystCookieValue,E=a.default.getSiteChannel,T=a.default.getSiteSection,w=a.default.getSiteSubsection1,I=a.default.getSiteSubsection2,x=a.default.getTimestamp,C=a.default.getTopicNames,L=a.default.getVersion,N=a.default.getPartner,O=a.default.getLicense;t.default={getAdsEnabled:r,getAnalyticsAccountID:o,getAnalyticsSuite:c,getAppName:u,getAppType:l,getArticleID:d,getArticleLength:f,getArticlePublishedDate:g,getArticleTitle:p,getArticleUpdatedDate:b,getCollection:y,getDaxCorp:m,getDomainFromUrl:_,getEdition:v,getIsApp:h,getPageName:S,getPageType:P,getReferrer:k,getSiteCatalystCookieValue:A,getSiteChannel:E,getSiteSection:T,getSiteSubsection1:w,getSiteSubsection2:I,getTimestamp:x,getTopicNames:C,getVersion:L,getPartner:N,getLicense:O},e.exports=t.default},function(e,t,n){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(162),a=s(i),r=n(163),o=s(r),c=n(164),u=s(c),l=n(165),d=s(l),f=n(166),g=s(f),p=n(167),b=s(p),y=n(168),m=s(y),_=n(169),v=s(_),h=n(170),S=s(h),P=n(174),k=s(P),A=n(175),E=s(A),T=n(177),w=s(T),I=n(178),x=s(I),C=n(179),L=s(C),N=n(180),O=s(N),D=n(181),B=s(D),R=n(182),U=s(R),F=n(183),M=s(F),G=n(184),j=s(G),K=n(185),V=s(K),W=n(186),z=s(W),q=n(187),H=s(q),Y=n(188),$=s(Y),J=n(189),X=s(J),Z=n(190),Q=s(Z),ee=n(191),te=s(ee),ne=n(192),se=s(ne),ie=n(193),ae=s(ie),re=n(194),oe=s(re),ce=n(195),ue=s(ce),le=n(173);t.default={getAdsEnabled:a.default,getAnalyticsAccountID:o.default,getAnalyticsSuite:u.default,getAppName:d.default,getAppType:g.default,getArticleID:b.default,getArticleLength:m.default,getArticlePublishedDate:v.default,getArticleTitle:S.default,getArticleUpdatedDate:k.default,getCollection:E.default,getDaxCorp:w.default,getDomainFromUrl:x.default,getEdition:L.default,getIsApp:O.default,getPageName:B.default,getPageType:U.default,getReferrer:M.default,getSectionStrings:j.default,getSiteCatalystCookieValue:V.default,getSiteChannel:z.default,getSiteSection:H.default,getSiteSubsection1:$.default,getSiteSubsection2:X.default,getSyndicatedVideoSource:Q.default,getTimestamp:te.default,getTopicNames:se.default,getVersion:ae.default,sanitiseKeyValues:le.sanitiseKeyValues,sanitiseLabelValue:le.sanitiseLabelValue,sanitisePageName:le.sanitisePageName,getPartner:oe.default,getLicense:ue.default},e.exports=t.default},function(e,t,n){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}function i(){return r.default.isAdsEnabled()?1:0}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var a=n(150),r=s(a);e.exports=t.default},function(e,t,n){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}function i(){return r.default.getAnalyticsAcctId()}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var a=n(150),r=s(a);e.exports=t.default},function(e,t,n){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}function i(){return r.default.getAnalyticsSuite()}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var a=n(150),r=s(a);e.exports=t.default},function(e,t,n){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}function i(){return r.default.getAppName()}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var a=n(150),r=s(a);e.exports=t.default},function(e,t,n){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}function i(){return r.default.isSportApp()||bbcdotcom.analytics.isScwHandlerUsed?"mobile-app":"undefined"!=typeof orb&&"function"==typeof orb.fig&&1===orb.fig("mb")||0===r.default.getWindowLocation().hostname.search(/m.*.bbc.co/)?"mobile-web":"web"}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var a=n(150),r=s(a);e.exports=t.default},function(e,t,n){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}function i(e){return"undefined"!=typeof e&&""!==e||(e=r.default.getWindowLocation().href),/.*[\-\/](\d{7,9})($|(\/[a-z]*))/.test(e)?RegExp.$1:o}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var a=n(150),r=s(a),o="na";e.exports=t.default},function(e,t){"use strict";function n(){if("undefined"!=typeof window.config&&"undefined"!=typeof window.config.asset&&"undefined"!=typeof window.config.asset.length&&null!==window.config.asset.length)return window.config.asset.length;var e=document.getElementById("story-body");if("undefined"!=typeof e&&null!==e)return s(e);var t=document.getElementsByClassName("article");if("undefined"!=typeof t&&null!==t&&1===t.length){var n=t[0];return s(n)}var i=document.getElementById("emp-content");if("undefined"!=typeof i&&null!==i)return s(i);var a=document.getElementsByClassName("layout-block-a");if("undefined"!=typeof a&&null!==a&&1===a.length){var r=a[0];return s(r)}return null}function s(e){if("undefined"==typeof e||null===e)return null;try{if("undefined"!=typeof e.innerText&&null!==e.innerText&&"undefined"!=typeof e.innerText.length&&null!==e.innerText.length)return e.innerText.length; if("undefined"!=typeof e.textContent&&null!==e.textContent&&"undefined"!=typeof e.textContent.length&&null!==e.textContent.length)return e.textContent.length}catch(e){return null}return null}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,e.exports=t.default},function(e,t,n){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=null,n=r.default.getMetaNameContent("DCTERMS.created"),s=r.default.getMetaPropertyContent("rnews:datePublished");if(window.config&&window.config.asset&&window.config.asset.first_created&&window.config.asset.first_created.date?t=window.config.asset.first_created.date:""!==n?t=n.replace("T"," ").replace("+00:00",""):""!==s&&(t=s),null===t||0===t.length)return null;if(t=t.replace(/-/g,"/"),"undefined"!=typeof e&&e===!0)try{return Date.parse(t)/1e3}catch(e){return null}return t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var a=n(143),r=s(a);e.exports=t.default},function(e,t,n){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}function i(){return(0,o.sanitiseLabelValue)(r.default.getPageName()).replace(/[\s]/g,"_").replace(/_{2,}/g,"_")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var a=n(171),r=s(a),o=n(173);e.exports=t.default},function(e,t,n){"use strict";var s,i=n(143),a=n(150),r=n(152),o=n(144)("analytics:helper"),c=n(172),u=n(167),l=["","","",""],d=!1,f=/^(autos|capital|culture|earth|future|travel)$/,g=["homepage","news","sport","wwscripts","reel"],p=500,b="na",y=function(e){return/^http(|s):\/\/[a-z0-9\-.]+.bbc.co(m|.uk)(\/)?(.*)?/.test(e)},m=function(){var e=/(news|sport)\/live\//;return null!==e.exec(r.getSections().join("/"))},_=function(e){return/^http(|s):\/\/traffic\.outbrain\.com/.test(e)},v=function(e){"undefined"==typeof e&&(e=">");var t=r.getSections("analytics",!0);return l=["","","",""],l[0]=t[0],"undefined"!=typeof t[1]&&t[1]&&("news"!==t[0]||0!==t[1].indexOf("world")&&"specialfeatures"!==t[1]?"sport"===t[0]?(l[1]=t[0]+e+t[1],"undefined"!=typeof t[2]&&t[2]&&(l[2]=l[1]+e+t[2],"undefined"!=typeof t[4]&&t[4]&&t[3]&&t[2]?l[3]=l[2]+e+t[3]+e+t[4]:"undefined"!=typeof t[3]&&t[3]&&t[2]&&(l[3]=l[2]+e+t[3]))):"undefined"!=typeof t[2]&&t[2]?(l[1]=t[0]+e+t[1],l[2]=l[1]+e+t[2]):l[1]=t[0]+e+t[1]:"undefined"!=typeof t[3]&&t[3]&&t[2]?(l[1]=t[0]+e+t[1]+e+t[2],l[2]=l[1]+e+t[3]):"undefined"!=typeof t[2]&&t[2]?l[1]=t[0]+e+t[1]+e+t[2]:l[1]=t[0]+e+t[1]),""===l[1]&&(l[1]=l[0]),""===l[2]&&(l[2]=l[1]),l},h=function(){var e,t=a.getHeadline();return""!==t?t:"undefined"!=typeof window.config&&"undefined"!=typeof window.config.asset&&"undefined"!=typeof window.config.asset.headline&&""!==window.config.asset.headline?window.config.asset.headline:(e=i.getMetaNameContent("Headline"),""!==e?e:"na")},S=function(){var e=void 0;return"japanese"===w()?b:"undefined"!=typeof window.config&&"undefined"!=typeof window.config.asset&&"undefined"!=typeof window.config.asset.edition&&""!==window.config.asset.edition?window.config.asset.edition:(e=i.getMetaNameContent("CPS_AUDIENCE"),""!==e?e:(e=i.getMetaPropertyContent("wwhp-edition"),""!==e?e:b))},P=function(e){e=e||a.getWindowLocation().href;var t=r.getSectionsForUri(e,"analytics"),n=a.getType();switch("homepage"===t[0]?n="INDEX":"reel"===t[0]&&t.length>1?n="MAP":m()?n="LIVE-EVENT":a.isStickyPlayerPage()?n="VIDEO-STICKY":""===n&&(window.config&&window.config.asset&&window.config.asset.type?n=window.config.asset.type:window.onesport&&window.onesport.config&&window.onesport.config.omnitureAssetType?n=window.onesport.config.omnitureAssetType:window.bbc&&bbc.fmtj&&bbc.fmtj.page&&bbc.fmtj.page.assetType?n=bbc.fmtj.page.assetType:("sport"===t[0]&&"av"===t[1]||"sport"===t[0]&&e.indexOf("/sport/av")>0)&&(n="AV")),n=i.isString(n)?n.toUpperCase():""){case"AV":case"MAP":case"MEDIA_ASSET":n="VIDEO";break;case"STY":n="STORY";break;case"IDX":n="INDEX";break;case"LEP":n="LIVE-EVENT";break;case"LIVE_EVENT":n="LIVE-EVENT"}return"STORY"===n&&a.isContinuousPlayPage()&&(n="STORY-VIDEO"),n||(/.*(-|\/)(\d{7,9})$/.test(e)?"STORY":"INDEX")},k=function(e){e=e||a.getWindowLocation().href,e=e.split(/[?#]/)[0];var t,n=r.getSectionsForUri(e,"analytics"),s=P().toLowerCase(),i=u(e),o=n.join("."),c={".live":"","world-africa":"world.africa","entertainment-arts":"entertainment_and_arts","us-canada":"us_and_canada","video-audio":"video_and_audio","world.radio-tv":"world_radio_and_tv","blogs-the-papers":"blogs.the-papers","worldservice.":""};switch(s){case"corr_story":s=".correspondent_story";break;case"index":s="";break;case"live-event":s=".live_coverage";break;default:s="."+s}for(t in c)o=o.replace(t,c[t]);return o.replace(/-/g,"_")+s+(i!==b?"."+i:"")+".page"},A=function(e){return e=e.replace(/"/g,"'"),e=e.replace(/(^bbc (news|sport) \- )/i,""),e=e.replace(/( \- bbc (news|sport)$)/i,""),e=e.replace(/( \- BBCニュース$)/i,""),e.toLowerCase()},E=function(){return"undefined"==typeof a.getWindowDocument().title?"":A(a.getWindowDocument().title)},T=function(){var e=a.getWindowLocation().pathname.replace(/\.app$/,"").replace(/news\/av\//,"news/").replace(/^\/weather\/0/,"/weather").replace(/^\/sport\/(uk|world)/,"/sport"),t=e.toLowerCase().slice(1);"/"===t.slice(-1)&&(t=t.slice(0,-1));var n=t.split("/"),s=void 0,i=w();return s=1===n.length?""===i||"wwhp"===i?"homepage.home":"news"===i||"weather"===i||"sport"===i||"japanese"===i||"reel"===i?i+".home":E():"sport"===i&&n.length>1&&"0"===n[1]?2===n.length?n[0]+".home":n[0]+"."+n.slice(2).join("."):"weather"===i||"sport"===i?n.join(".").replace(/^news\.(uk|world|us|asia)\.(health)(?!-)/,"news.$2"):"news"===i||"japanese"===i?k():"reel"===i?n.join("."):E()},w=function(){var e=a.getWindowLocation().pathname.replace(/\.app$/,""),t=e.toLowerCase().slice(1);"/"===t.slice(-1)&&(t=t.slice(0,-1));var n=t.split("/");return n.length>0?n[0]:""},I=function(e){return/^\{[a-zA-Z0-9\-_]+\}$/.test(e)?e:encodeURIComponent(e)},x=function(e){var t="",n=r.getSectionsForUri(e.href,"analytics");"undefined"!=typeof e.text?t=e.text:"undefined"!=typeof e.innerText&&(t=e.innerText);var s=n[0];s="unknown"===s?"external":s;var a=function(e){return e=i.trim(e).toLowerCase().replace(/[^a-zA-Z0-9]/g,"-"),e.indexOf("----")===-1?e:e.substr(0,e.indexOf("----"))},o=function(e){var t=e.match(/.*\/[0-9]+\-([^\/]+)/);return null!==t?t[1]:n.join(">")},c="";if("undefined"!=typeof e.dataset&&"undefined"!=typeof e.dataset.track&&""!==e.dataset.track?c=e.dataset.track:e.getAttribute("data-track")?c=e.getAttribute("data-track"):"undefined"!=typeof e.rev&&""!==e.rev&&(c=e.rev),e.className.indexOf("external-link")!==-1)return{events:!1,promoted:"external",linkName:a(t),moduleName:!1};if("homepage"!==l[0]&&"wwscripts"!==l[0]||c.indexOf("|")===-1){if(i.parentHasClass(e,"bbccom_adsense",void 0,!0))return{events:!1,promoted:"ads",linkName:"adsense",moduleName:"google-adsense"};if(i.parentHasClass(e,"bbccom_advert",void 0,!0))return!1;if(i.parentHasClass(e,"bbc-st-buttons")||i.parentHasClass(e,"share__tool"))return{events:"event23",promoted:"share-tools",linkName:a(t),moduleName:"share-tools",v:{35:a(t)+"-share",39:l[1]+"-"+E()}};if("news"===l[0]&&("news"===l[1]||"news.0"===l[1])){T=i.getParentElementByAttribute(e,"data-entityid",10);var u=T?T.getAttribute("data-entityid"):"",d=u.match(/(.+?)(-|#)(\d)/)[1];return w=u.match(/(\d{1,}$)/)[0],{promoted:s,moduleName:d?d:b,linkName:a(t),linkPosition:w?w:b,linkSection:n.join(".")}}if(("news"===l[0]||"wwscripts"===l[0])&&i.parentHasClass(e,"hyper-promotional-content",5))return{events:!1,promoted:"elsewhere",linkName:a(t),moduleName:"elsewhere"};if(e.href.indexOf("outbrain.com")!==-1){s="outbrain-module";var g=i.getParentElementByClass(e,"OUTBRAIN",5);if("undefined"!=typeof g.dataset.widgetId){var p,y=parseInt(g.dataset.widgetId.substr(3,1),10),m={"videos-on-news":[1,5,6],"elsewhere-on-news":[2,3,7],"others-sites":[4,9],"elsewhere-on-features":[8]};for(p in m)if(m[p].indexOf(y)!==-1){s=p;break}}return{events:!1,promoted:s,linkName:a(t),moduleName:"outbrain-recommends"}}if("reel"===l[0]){var _=c.split("|"),v="reel.home";2===n.length&&(v="reel.playlists"),n.length>2&&("playlist"===n[2]&&(v="reel.playlist"),"video"===n[2]&&(v="reel.video"));var h=a(t);e.getAttribute&&e.getAttribute("aria-label")&&(h=a(e.getAttribute("aria-label")));var S="",P="";return _.length>1&&(S=_[1]),_.length>2&&(P=_[2]),{events:!1,promoted:"reel",moduleName:_[0],linkName:h,linkPosition:S,totalLinks:P,section:v}}}else{var k=c.split("|"),A=n[0].match(f)?o(e.href):a(t),T=i.getParentElementByClass(e,"module2");T===!1&&(T=i.getClosestElementByTagName(e,"section"));var w=i.getAnchorPositionWithinElement(T,e.href);if(k.length>0)return{events:!1,promoted:s.toLowerCase(),linkName:A,moduleName:k[0].toLowerCase(),linkType:"string"==typeof k[1]?k[1].toLowerCase():b,linkPosition:w!==!1&&0!==w?w:b}}return!1},C=function(){return bbcdotcom.analytics.sscHelper.getAnalyticsLocation()},L=function(e,t){e=C()+e,o("Tracking URL: ",e);var n=document.createElement("img");"function"==typeof t&&(n.onload=t),"undefined"==typeof window.IS_GNL_JS_UNIT_TEST&&(n.src=e)},N=function(e,t){var n=i.getCookie(e);"undefined"!=typeof n&&n.length>0&&(o("Delayed link tracking get "+e+" cookie:"+n),L(n),t.http.push(n),i.deleteCookie(e))},O=function(e,t,n){var s=e(n,"link",void 0,!1);i.setCookie(t,s,60),o("link tracking set "+t+" cookie:"+s)},D=function(e,t,n,s){var a=!1,r=null,o=!i.isEventDefaultPrevented(n),c=function(e,t,n,s){clearTimeout(n),t&&!a&&s&&e&&i.navigateTo(e),a=!0};i.cancelEvent(n),e(s,"link",function(e){c(t,n,r,o)}),r=setTimeout(function(){c(t,n,r,o)},p)},B=function(e,t,n,s,i){y(n)||_(n)?O(e,t,i):D(e,n,s,i)},R=function(e){var t=r.getSection(0,"analytics",!0);t&&g.indexOf(t)===-1||d!==!0&&(s=function(t){var n=i.getClosestElementByTagName(t.target||t.srcElement,"a",!0);n!==!1&&e(n,t)},i.addEvent(document.getElementsByTagName("body")[0],"click",s),d=!0)},U=function(){var e=a.getWindowLocation(),t=e.href,n=c("config.asset.asset_uri");return"VIDEO-EMBED"===a.getType()&&n&&(t=e.protocol+"//"+e.hostname+n),t},F=function(e){return"radioProgramme"===e?"audio":"video"};e.exports={isBBCUri:y,determineSections:v,getStoryHeadline:h,getPageEdition:S,getVertical:w,getPageType:P,sanitisePageName:A,getAnalyticsUri:C,getPageName:E,getPageNameComScore:T,getEmbedPageName:k,encodeValue:I,getLinkTrackingProperties:x,loadTrackingImage:L,processDelayTrackingCookie:N,trackLink:B,applyLinkTrackingToPageElements:R,getUriForSections:U,getAvFormatFromKind:F,r:function(){i.removeEvent(document.getElementsByTagName("body")[0],"click",s),d=!1}}},function(e,t){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports=function(e){var t,s,i=arguments,a=e.split("."),r=null!==i[1]&&"object"===n(i[1])?i[1]:window;for(t=0,s=a.length;t]/g,"")}function s(e){var t={};for(var n in e)e.hasOwnProperty(n)&&""!==e[n]&&null!==e[n]&&"na"!==e[n]&&(t[n]=isNaN(e[n])?e[n]:String(e[n]));return t}function i(e){return"string"!=typeof e?e:e.toLowerCase().replace(/[\s]/g,"_").replace(/[&=\/<>+?]/g,"").replace(/_{2,}/g,"_")}Object.defineProperty(t,"__esModule",{value:!0}),t.sanitiseLabelValue=n,t.sanitiseKeyValues=s,t.sanitisePageName=i},function(e,t,n){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}function i(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null,n=r.default.getMetaNameContent("DCTERMS.modified"),s=o();if("undefined"!=typeof window.config&&"undefined"!=typeof window.config.asset&&null!==typeof window.config.asset.last_updated&&"undefined"!=typeof window.config.asset.last_updated&&"undefined"!=typeof window.config.asset.last_updated.date)t=window.config.asset.last_updated.date;else if(""!==n)t=n.replace("T"," ").replace("+00:00","");else if(s)return s;return null===t||0===t.length?null:"undefined"!=typeof e&&e===!0?new Date(t.replace(/\//g,"-").replace(" ","T")).getTime()/1e3:t.replace(/-/g,"/")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var a=n(143),r=s(a),o=function(){var e=document.querySelector("time[data-timestamp]");if("undefined"==typeof e||!e||null===e)return null;var t=e.getAttribute("data-timestamp");return"undefined"!=typeof t&&t&&""!==t?t:null};e.exports=t.default},function(e,t,n){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}function i(){return r.default.get("keyword")!==!1?r.default.get("keyword").toLowerCase():""}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var a=n(176),r=s(a);e.exports=t.default},function(e,t,n){"use strict";var s=n(152),i=n(143),a={},r=!1,o={AV:"media_asset",INDEX:"index"},c=function(e){/([0-9]{7,8})$/.test(e.split("?")[0].split("#")[0])&&(a.story_id=RegExp.$1)},u=function(e){e=e.split("?")[0].split("#")[0],a.ctype=/[0-9]{7,8}$/.test(e)?"content":"index"},l=function(e,t){"undefined"==typeof a.asset_type&&(t&&"string"==typeof t&&o[t]?a.asset_type=o[t]:(e=e.split("?")[0].split("#")[0],a.asset_type=/[0-9]{7,8}$/.test(e)?"story":"index"),/\/(sport|news)\/live\//.test(e)&&(a.asset_type="live_event"))},d=function(e){var t=e.match(/^(http[s]?:\/\/[a-z0-9\.]*bbc\.(co\.uk|com))(.*)$/);if(t){var n;n=t[3].replace(/default.stm$|\-|\/|_/g,""),n.length>0&&n.length<=64?a.referrer=escape(n):a.referrer=""}else a.referrer="nonbbc"},f=function(e){var t=e.match(/^(http[s]?:\/\/)([a-z0-9\.]*)((?:\/(?:\w|-|\+|\.)+)*)(\/.*)$/);t?a.referrer_domain=t[2]:a.referrer_domain=""},g=function(e){var t,n,s,i=[];if("undefined"!=typeof e.cookie)for(s=e.cookie.indexOf("rsi_segs="),a.rsi=[],s>=0&&(s=e.cookie.indexOf("=",s)+1,s>0&&(n=e.cookie.indexOf(";",s),n===-1&&(n=e.cookie.length),i=e.cookie.substring(s,n).split("|"))),t=0;tt?(r&&(clearTimeout(r),r=null),o=u,a=e.apply(s,i),r||(s=i=null)):r||n.trailing===!1||(r=setTimeout(c,l)),a}},S="bbccom_",P=function(e){var t={adSizes:r.getAdCurrentGroupSizes(e)};return t.domId=o("bbcdotcom.config.isAsync")?S+e:e,t},k=function(){googletag.cmd.push(function(){googletag.pubads().addEventListener("slotRenderEnded",function(e){bbcdotcom.adverts.dfppRequest.getInitComplete()||bbcdotcom.adverts.dfppRequest.setInitComplete(!0);var t=e.slot.getTargeting("slot");t=t[0].replace("bbccom_","");var n=u.getAd(t),s=e.slot.getSlotElementId();a(t,s,"isEmpty",e.isEmpty),n&&n.isRendered()||(n.injectAdvertisementText(),n.setRendered(!0),n.setEventSize(e.size),n.renderIfReady(),d.trigger("ad:render:complete",s,e.isEmpty),bbcdotcom.adverts.dfppRequest.requestDeferredAds())})})},A=function(){this.slots={},this.deferredSlots=[],this.initComplete=!1};A.prototype.reset=function(){try{g.isAdsEnabled()&&"undefined"!=typeof googletag&&(googletag.pubads().clearTargeting(),googletag.pubads().updateCorrelator(),this.init(!0))}catch(e){a.error("Unable to reset ads targeting",e)}},A.prototype.init=function(e){try{if(g.isAdsEnabled()&&"undefined"!=typeof googletag){var t=window.bbccookies&&bbccookies.readPolicy&&bbccookies.readPolicy("performance");googletag.cmd.push(function(){if(googletag.pubads().setPrivacySettings({restrictDataProcessing:t!==!0}),googletag.pubads().setTargeting("frd","1"),f.getPreviewUid()&&googletag.pubads().setTargeting("uid",f.getPreviewUid()),this.setKeyValues(),this.setLotameData(),this.setGrapeshotData(),this.setPermutiveData(),this.setProgrammesData(),this.setGroup(),googletag.pubads().setTargeting("esi","0"),"weather"===p.getSection(0)&&googletag.pubads().addEventListener("impressionViewable",function(e){var t,n;"mpu"===e.slot.getSlotElementId()&&(t=document.getElementById("bbccom_mpu").children,n="SCRIPT"===t[t.length-1].tagName?t[t.length-2]:t[t.length-1],b.addBodyTagClass("bbccom_slot_mpu"+100*Math.floor(n.clientHeight/100)))}),googletag.pubads().enableSingleRequest(),navigator.userAgent.indexOf("Safari")!=-1&&navigator.userAgent.indexOf("Chrome")==-1){var n=b.getCookie("ckpf_ppid")||b.generateUuidV4().split("-").join("");window.bbccookies&&bbccookies.readPolicy("performance")&&(a("Calling SetCookie with value : "+n),b.setCookie("ckpf_ppid",n)),googletag.pubads().setPublisherProvidedId(n)}o("bbcdotcom.config.isAsync")?(o("bbcdotcom.config.isDisableInitialLoad")&&googletag.pubads().disableInitialLoad(),k()):googletag.pubads().enableSyncRendering(),g.isNPA()&&googletag.pubads().setRequestNonPersonalizedAds(1),"undefined"!=typeof e&&e===!0||this.requestAds(),d.trigger("ads:initialised")}.bind(this))}}catch(e){a.error("Unable to setup ads",e)}},A.prototype.requestAds=function(){var e=m.isSlotEnabled("interstitial");try{if(g.isAdsEnabled()&&"undefined"!=typeof googletag){var t,n,s,i=f.get(),r=u.getAds(),o=Object.keys(this.slots);if(0===u.getAdCount())return googletag.cmd.push(function(){e&&(u.registerAd("interstitial"),googletag.defineOutOfPageSlot(i,"bbccom_interstitial").addService(googletag.pubads()).setTargeting("slot","interstitial"),o.push("bbccom_interstitial")),googletag.enableServices()}),void this.setInitComplete(!0);googletag.cmd.push(function(){for(t in r)r.hasOwnProperty(t)&&m.isSlotEnabled(r[t].getAdId().replace(S,""))&&(n=P(r[t].getAdId().replace(S,"")),s=n.adSizes,r[t].isFluid&&s.push("fluid"),n&&(n.adSizes.length>0||r[t].isFluid)&&(this.slots[n.domId]=googletag.defineSlot(i,s,n.domId).addService(googletag.pubads()),this.slots[n.domId].setTargeting("slot",n.domId.replace(S,""))));e&&(u.registerAd("interstitial"),googletag.defineOutOfPageSlot(i,"bbccom_interstitial").addService(googletag.pubads()).setTargeting("slot","interstitial"),o.push("bbccom_interstitial")),googletag.enableServices(),d.trigger("ads:requested",o)}.bind(this))}}catch(e){a.error("Unable to request ads",e)}},A.prototype.refreshAd=function(e){var t=u.getAd(e.replace("bbccom_",""));t?(googletag.pubads().refresh([this.slots[e]]),t.injectAdvertisementText()):a.warn("No "+e.replace("bbccom_","")+" ad found to refresh")},A.prototype.requestDeferredAds=function(e){if(this.deferredSlots.length>0){for(var t,n,s,i,o,c,l,g=[],p=!!e&&e,b=r.getCurrentGroupId(),m=0;m=0?(a("Registering ad: "+n+" for groups "+s),googletag.cmd.push(function(){var e=this,t=f.get(),a=P(l.getAdId().replace(S,"")),r=a.adSizes;l.isFluid&&r.push("fluid"),this.slots[a.domId]=googletag.defineSlot(t,r,a.domId).addService(googletag.pubads()),this.slots[a.domId].setTargeting("slot",a.domId.replace(S,"")),c&&Object.keys(c).forEach(function(t){t&&c[t]&&e.slots[a.domId].setTargeting(t,c[t])}),g.push(this.slots[a.domId]),y(n,s),i&&l.setAdText(i),l.injectAdvertisementText(),this.deferredSlots[m]="",d.trigger("ads:requested",n)}.bind(this))):a.warn("No "+n.replace("bbccom_","")+" ad found to register (for groups "+s+" )");this.deferredSlots=[],googletag.pubads().refresh(g,{changeCorrelator:p})}},A.prototype.registerAd=function(e,t,n){var s,r,o=!1,c="mpu_middle"===e&&4===t.length&&b.parentHasClass(document.getElementById("bbccom_mpu_middle_1_2_3_4"),"lx-stream")&&"undefined"!==_.getGroup(5);if("undefined"!=typeof t)c&&(document.getElementById("bbccom_mpu_middle_1_2_3_4").id="bbccom_mpu_middle_1_2_3_4_5",t=[1,2,3,4,5]),m.isSlotEnabled(e)||m.isLazyLoadedSlot(e)?this.deferredSlots.push({domId:e,groups:t.map(Number),keyValues:n}):a.warn("Slot "+e+" not enabled");else{o="undefined"==typeof(n||{}).mode||n.mode;for(var u in e)m.isSlotEnabled(u)?"object"!==i(e[u])||e[u]instanceof Array?this.deferredSlots.push({domId:u,groups:e[u].map(Number),keyValues:n}):(s=e[u].advertText,r=e[u].groups,this.deferredSlots.push({domId:u,groups:r.map(Number),advertText:s,keyValues:n})):a.warn("Slot "+u+" not enabled")}this.initComplete&&this.requestDeferredAds(o)},A.prototype.scrollHandler=function(){for(var e=0;e0&&(t+=","),t+=ccauds.Profile.Audiences.Audience[n].abbr;googletag.cmd.push(function(){googletag.pubads().setTargeting(e,[t])})}},A.prototype.setGrapeshotData=function(){var e="gs_cat";"undefined"!=typeof window.gs_channels&&"DEFAULT"!==window.gs_channels&&(googletag.cmd.push(function(){googletag.pubads().setTargeting(e,window.gs_channels)}),bbcdotcom.lotame.sendData(window.gs_channels.indexOf("+")>0?window.gs_channels.split("+"):window.gs_channels,"grapeshot"))},A.prototype.setPermutiveData=function(){g.isSportApp()||!g.isPermutiveEnabled()||g.isWorldService()||googletag.cmd.push(function(){if(0===googletag.pubads().getTargeting("permutive").length){ var e=window.localStorage.getItem("_pdfps");googletag.pubads().setTargeting("permutive",e?JSON.parse(e):[])}})},A.prototype.setProgrammesData=function(){var e,t,n;if("programmes"===p.getSection(1))try{n=document.getElementsByClassName("br-masthead__title")[0].children[0],e=n.href.split("/").pop(),t=n.innerText,googletag.cmd.push(function(){googletag.pubads().setTargeting("programme",e),googletag.pubads().setTargeting("name",t)})}catch(e){}},A.prototype.setKeyValues=function(){var e,t=c.getAll();if(t)for(e in t)t.hasOwnProperty(e)&&""!==t[e]&&googletag.pubads().setTargeting(e,t[e])},A.prototype.setInitComplete=function(e){this.initComplete=e,e&&(l(),this.requestDeferredAds(!1))},A.prototype.getInitComplete=function(){return this.initComplete},A.prototype.setExclusion=function(e){googletag.cmd.push(function(){googletag.pubads().setCategoryExclusion(e)})},A.prototype.setGroup=function(){var e="4",t=document.documentElement.clientWidth;t<1008&&(e="3"),t<600&&(e="2"),t<400&&(e="1"),t<320&&(e="0"),googletag.cmd.push(function(){googletag.pubads().setTargeting("group",e)})},e.exports=new A},function(e,t,n){"use strict";function s(e){var t,n,s;for(t in e)if(_.removeHtmlTagClass(m.className("group",t)),("undefined"==typeof e[t].f||o<=e[t].f)&&o>=e[t].s){u=+t,c=e[t],f||g||(f=c,g=u),_.addHtmlTagClass(m.className("group",u));for(n in c.slots){p[n]=[];for(s in c.slots[n])o>=c.slots[n][s][0]&&p[n].push(c.slots[n][s])}}}function i(e){var t,n=bbcdotcom.adverts.layout.getAdCurrentGroupSizes(e.getAdName()),s="undefined"==typeof e.adType||"promo"!==e.adType&&"feature"!==e.adType?l:d;for(t=0;t-1?bbcdotcom.adverts.adsenseRenderer.reset():v(t[e]))}catch(e){y.error(e)}}var o,c,u,l=20,d=30,f=!1,g=!1,p={},b=!1,y=n(144)("adverts:layout"),m=n(155),_=n(143),v=function(e){!bbcdotcom.domLoaded||e.isResponsive||e.isFluid||(a(e)?(y.debug("=== Opening "+e.getAdId()+" for current slot ==="),e.open()):(y.debug("=== Shutting "+e.getAdId()+" for current slot ==="),e.shut()))};e.exports={init:function(e){o=document.documentElement.clientWidth,s(e),b||bbcdotcom.addLoadEvent(function(){window.addEventListener("resize",_.debounce(r,500))})},moveAd:function(e,t){},setClientWidth:function(e){o=e},getClientWidth:function(){return o},getCurrentGroup:function(){return c},getCurrentGroupId:function(){return u},setCurrentGroupId:function(e){u=e},getCurrentGroupSizes:function(){return p},getAdCurrentGroupSizes:function(e){return"undefined"!=typeof p[e]?p[e]:"undefined"!=typeof p[e.slice(0,e.lastIndexOf("_"))]?p[e.slice(0,e.lastIndexOf("_"))]:"undefined"!=typeof p[e.slice(0,e.indexOf("_"))]?p[e.slice(0,e.indexOf("_"))]:[]},overrideGroupSizes:function(e){var t;p=[];for(t in e)p[t]=e[t]},disableReset:function(){b=!0},reset:r,r:function(){b=!1,c={},u=0,p={}}}},function(e,t){"use strict";var n,s,i={},a={wallpaper:{isResponsive:!0},interstitial:{isResponsive:!0},native:{allowScreenReader:!0,isResponsive:!0,hasAdText:!1},native_slice_l:{allowScreenReader:!0,isResponsive:!0,hasAdText:!0},native_slice_r:{allowScreenReader:!0,isResponsive:!0,hasAdText:!0},infeed:{allowScreenReader:!0,isResponsive:!0,hasAdText:!1},infeed_news_home:{allowScreenReader:!0,isResponsive:!0,hasAdText:!0},infeed_news_index:{allowScreenReader:!0,isResponsive:!0,hasAdText:!0,isFluid:!0},infeed_news_story:{allowScreenReader:!0,isResponsive:!0,hasAdText:!0,isFluid:!0},adsense:{adType:"adsense",isResponsive:!1,hasAdText:!0},outbrain:{adType:"outbrain",isResponsive:!0,isDfppRequest:!1},promo:{adType:"promo",hasAdText:!1},sponsor:{adType:"sponsor",isResponsive:!0,size:[88,31]},sponsorbig:{adType:"sponsorbig",isResponsive:!0,size:[132,64]},module:{adType:"module",isResponsive:!0,size:[88,31]},module_worldinpictures:{adType:"module_worldinpictures",isResponsive:!1},sponsor_section:{adType:"sponsor_section",isResponsive:!1,size:[88,31]},ad_feature_rc:{adType:"feature",hasAdText:!1},sponsor_banner:{adType:"sponsor_banner",isResponsive:!1,size:[88,31]},googlenative:{isFluid:!0}};e.exports={setAdFactory:function(e){n=e},registerAd:function(e){return""!==e&&"undefined"==typeof i[e]&&(i[e]=new bbcdotcom.adverts.ad(e),"undefined"!=typeof a[e]?i[e].setConfig(a[e]):"undefined"!=typeof a[e.slice(0,e.indexOf("_"))]&&i[e].setConfig(a[e.slice(0,e.indexOf("_"))])),i[e]},setCurrentAdId:function(e){s=e},getCurrentAdId:function(){return s},getCurrentAd:function(){return bbcdotcom.config.isActive("ads")?"undefined"!=typeof s&&i[s]?i[s]:{setBaseContent:function(){},show:function(){},close:function(){}}:{show:function(){},close:function(){}}},getAd:function(e){if("undefined"!=typeof i[e])return i[e]},getAds:function(){return i},getAdCount:function(){var e,t=0;for(e in i)i.hasOwnProperty(e)&&t++;return t},r:function(){i={},s=void 0}}},function(e,t){"use strict";var n=function(){window.bbcdotcom.cmd=window.bbcdotcom.cmd||[],window.bbcdotcom.cmd&&setTimeout(function(){for(;window.bbcdotcom.cmd.length>0;){var e=window.bbcdotcom.cmd.shift();e()}Object.defineProperty(window.bbcdotcom.cmd,"push",{value:function(e){"function"==typeof e&&e()}})},500)};e.exports=n},function(e,t){"use strict";var n={};e.exports={on:function(e,t){var s;if("function"!=typeof t)throw new TypeError("Event handler must be a function");var i=e.split(" ");for(s=0;s=0;)n[e].splice(n[e].indexOf(t),1);return 0===n[e].length&&delete n[e],this},clear:function(){return n={},this}}},function(e,t,n){"use strict";var s,i,a=n(176),r=n(143),o=n(150),c=n(205),u={},l="/4817/",d="desktop",f=900,g="bbccom.live.site.news/",p="_default",b="unknown",y="channel",m="sectn",_="subsect",v=g,h=!1,S=d,P="",k=!1,A=!1,E={live:"bbccom.live.site.news/",www:"bbccom.live.site.www/",specials:"bbccom.live.site.specialfeatures/",preview:"bbccom.preview.site.test/",test:"bbccom.test.site.flash/",live_mobile:"bbccom.live.site.mobile.news/",www_mobile:"bbccom.live.site.mobile.www/",specials_mobile:"bbccom.live.site.specialfeatures/",preview_mobile:"bbccom.preview.site.mobile.news/",test_mobile:"bbccom.qa.site.mobile.news/",test_arabic:"bbcws.test.site.mobile.arabic/",test_russian:"bbcws.test.site.mobile.russian/",live_earth:"bbcearth.com/",test_earth:"bbcearth.test.com/",test_amp_news:"bbccom.test.amp.news/",live_amp_news:"bbccom.live.amp.news/",live_sport_app:"BBCSportAppIOS/",live_embed:"bbccom.embedplayer/",test_embed:"bbccom.test.embedplayer/",live_reel:"bbccom.live.site.reel/",test_reel:"bbccom.test.site.reel/"},T={live_desktop:"bbcworldservice.live.site.",test_desktop:"bbcworldservice.test.site.",live_mobile:"bbcws.live.site.mobile.",test_mobile:"bbcws.test.site.mobile."},w={japanese:"japan"},I={live:"bbccom.live.site.",test:"bbccom.test.site."},x={"^/sport/football/teams/(liverpool|manchester-city)":"sport_football$1_content","^/news/election/us2016":"news_uscanada_content"},C="",L=function(e){S=e=0&&(n.setCurrentSlotGroups(t),s=document.getElementById("bbccom_"+n.getAdId()+"_"+t.join("_")),i=s.firstElementChild||s.firstChild,i&&(i.id="bbccom_"+n.getAdId()),bbcdotcom.utils.addTagClass(s,"bbccom_"+n.adType+"_slot"))))}},function(e,t,n){"use strict";function s(){var e=a.getWindowLocation(),t=r.getSection(0),n=r.getSection(1),s=r.getSection(2),i=t+"|"+n,u=["inread","infeed_sport_story","infeed_sport_index","infeed_sport_fp","native_ctp"],l={worldservice:["sponsor_section","mpu_bottom"],homepage:["module_feature-2","parallax"],travel:["responsive_box_1","promo_feature_responsive","promo_feature_1","promo_feature_2","promo_feature_3","ad_feature_rc","native_responsive"],future:["responsive_box_1","promo_feature_responsive","promo_feature_1","promo_feature_2","promo_feature_3","ad_feature_rc"],worklife:["responsive_box_1","promo_feature_responsive","promo_feature_1","promo_feature_2","promo_feature_3","ad_feature_rc"],earth:["parallax","verticalnavbar","sponsor_section","responsive_box_1","promo_feature_1","promo_feature_2","promo_feature_3","ad_feature_rc","native_side"],culture:["promo_feature_responsive","promo_feature_1","promo_feature_2","promo_feature_3","ad_feature_rc"],capital:["responsive_box_1","promo_feature_responsive","promo_feature_1","promo_feature_2","promo_feature_3","ad_feature_rc"],autos:["parallax","verticalnavbar","sponsor_section","responsive_box_1","promo_feature_responsive","promo_feature_1","promo_feature_2","promo_feature_3","ad_feature_rc"],news:["sponsor","sponsor_section","sponsor_banner","module","native_slice_r"],sport:["sponsor","sponsor_section","sponsor_banner","module"],"worldservice|persian":["adsense"],"worldservice|swahili":["adsense"],"news|entertainment-arts":["adsense","outbrain","outbrain_tr_1","outbrain_ar_5","outbrain_ar_7","outbrain_ar_8","outbrain_ar_9"]},d={"news|business":["sponsor","sponsor_section","sponsor_banner","module"],"news|technology":["sponsor","sponsor_section","sponsor_banner","module"],"news|resources":["sponsor","sponsor_section","sponsor_banner","module"],"sport|golf":["sponsor","sponsor_section","sponsor_banner","module"],"sport|tennis":["sponsor","sponsor_section","sponsor_banner","module"],"sport|football":["sponsor","sponsor_section","sponsor_banner","module"],"sport|formula1":["sponsor","sponsor_section","sponsor_banner","module"],"sport|equestrian":["sponsor","sponsor_section","sponsor_banner","module"],"sport|horse-racing":["sponsor","sponsor_section","sponsor_banner","module"],"sport|olympics":["sponsor","sponsor_section","sponsor_banner","module"],"sport|move-like-never-before":["sponsor","sponsor_section","sponsor_banner","module"],"sport|home-of-the-english-premier-league":["sponsor","sponsor_section","sponsor_banner","module"]};return a.isTlSportStoryEnabled()&&(u=u.filter(function(e){return"infeed_sport_story"!==e})),a.isTlSportIndexEnabled()&&(u=u.filter(function(e){return"infeed_sport_index"!==e})),a.isTlSportFpEnabled()&&(u=u.filter(function(e){return"infeed_sport_fp"!==e})),/testctp/i.test(window.location.href)&&(u=u.filter(function(e){return"native_ctp"!==e})),/^\/news\/world\/us_and_canada\/states/.test(e.pathname)&&u.push("mpu"),l[t]&&(u=u.concat(l[t])),l[i]&&(u=u.concat(l[i])),d[i]&&(u=u.filter(function(e){return!d[i].includes(e)})),"future/earth/culture/capital/autos/worklife".indexOf(t)!==-1&&(/(\/story\/)(\d{8})(-)/.test(e.pathname)?u.push("native_responsive"):u.push("native_side")),"news"===t&&"STORY"===c.getPageType()||"homepage"===t||u.push("native"),a.isPlatinumEnabled()||u.push("platinum"),("news|the-reporters"===i||"news|special-reports"===i||"news|world"===i&&"radio-tv"===s)&&(u.push("infeed_news_index"),u.push("native_slice_l")),(a.isSportApp()||"autos"===t||"japan"===t&&"STORY"!==c.getPageType()||"worldservice"===t&&("STORY"!==c.getPageType()||"STORY"===c.getPageType()&&"arabic|mundo|portuguese|japanese".indexOf(n)===-1))&&u.push("interstitial"),"VIDEO"===c.getPageType()&&"sport"===t&&u.push("leaderboard"),o.isTestEnv()&&/[?|&]googlenative/.test(window.location.href)&&"STORY"===c.getPageType()&&(u.push("mpu"),u.push("leaderboard")),o.isTestEnv()&&/[?|&]googlenative/.test(window.location.href)&&"INDEX"===c.getPageType()&&(u.push("mpu"),u.push("leaderboard")),"news"===t&&document.getElementsByClassName("column--single-column-layout").length>0&&"STORY"===c.getPageType()&&(u.push("mpu"),u.push("mpu_bottom")),u.join("|")}function i(e){var t=r.getSection(0),n={"homepage|mpu_bottom":"module--secondary-special-features","homepage|infeed":"module__content","news|infeed_news_story":"features-and-analysis__stories","news|infeed_news_home":"gel-wrap"};return n[t+"|"+e]}var a=n(150),r=n(152),o=n(143),c=n(171);e.exports={build:function(e){var t=s();return a.isSportApp()?e.filter(function(e){return e.includes("mpu")&&!e.includes("mpu_")&&!e.includes("_mpu")}):e.filter(function(e){return!t.match(new RegExp("(^|\\|)("+e+")($|\\|)","g"))&&!i(e)})},isSlotEnabled:function(e){var t=s();return!t.match(new RegExp("(^|\\|)("+e+")($|\\|)","g"))},isLazyLoadedSlot:i}},function(e,t){"use strict";var n={0:{s:0,f:319,slots:{wallpaper:[],leaderboard:[],mpu:[],mpu_middle:[],mpu_bottom:[],sponsor:[],module:[],module_worldinpictures:[],promo:[],ad_feature_rc:[],native:[[10,10]],native_slice_l:[[5,5]],native_slice_r:[[5,5]],native_side_2:[],native_main_small:[],native_main_medium:[],native_main_large:[],adsense:[],parallax:[],promo_feature_responsive:[[472,791]],responsive_box_1:[[8,1]],responsive_box_2:[[8,1]],verticalnavbar:[[20,20]],infeed:[[12,12]],platinum:[[88,31]]}},1:{s:320,f:399,slots:{wallpaper:[],leaderboard:[[320,50],[300,50]],mpu:[[300,50],[320,50],[300,250]],mpu_middle:[[300,251]],mpu_bottom:[[300,251]],adsense:[[300,252]],sponsor:[[88,31]],sponsorbig:[[132,64]],module:[[88,31]],module_worldinpictures:[[320,50],[300,50]],promo:[],ad_feature_rc:[],native:[[10,10]],native_slice_l:[[5,5]],native_slice_r:[[5,5]],native_side_2:[],native_main_small:[],native_main_medium:[],native_main_large:[],parallax:[],promo_feature_responsive:[[472,791]],responsive_box_1:[[8,1]],responsive_box_2:[[8,1]],verticalnavbar:[[20,20]],infeed:[[12,12]],platinum:[[88,31]]}},2:{s:400,f:599,slots:{wallpaper:[],leaderboard:[[516,60],[320,50],[300,50]],mpu:[[516,60],[300,50],[320,50],[300,250]],mpu_middle:[[300,251]],mpu_bottom:[[300,251]],adsense:[[300,252]],sponsor:[[88,31]],sponsorbig:[[132,64]],module:[[88,31]],module_worldinpictures:[[320,50],[300,50]],promo:[],ad_feature_rc:[],native:[[10,10]],native_slice_l:[[5,5]],native_slice_r:[[5,5]],native_side_2:[],native_main_small:[],native_main_medium:[],native_main_large:[],parallax:[],promo_feature_responsive:[[472,791]],responsive_box_1:[[8,1]],responsive_box_2:[[8,1]],verticalnavbar:[[20,20]],infeed:[[12,12]],platinum:[[88,31]]}},3:{s:600,f:1007,slots:{wallpaper:[],leaderboard:[[516,60],[728,90],[970,300],[970,250],[970,90],[970,66]],mpu:[[300,250],[300,600]],mpu_middle:[[300,251]],mpu_bottom:[[300,251]],adsense:[[300,252]],sponsor:[[88,31]],sponsorbig:[[132,64]],module:[[88,31]],module_worldinpictures:[[320,50],[300,50]],promo:[[336,224]],ad_feature_rc:[[336,136]],native:[[10,10]],native_slice_l:[[5,5]],native_slice_r:[[5,5]],native_side_2:[[336,209]],native_main_small:[[384,258]],native_main_medium:[[464,258]],native_main_large:[[624,258]],parallax:[],promo_feature_responsive:[[472,791]],responsive_box_1:[[8,1]],responsive_box_2:[[8,1]],verticalnavbar:[[20,20]],infeed:[[12,12]],platinum:[[88,31]]}},4:{s:1008,f:1e4,slots:{wallpaper:[[1,1]],leaderboard:[[728,90],[970,300],[970,250],[970,90],[970,66],[940,230]],mpu:[[300,250],[300,600]],mpu_middle:[[300,251]],mpu_bottom:[[300,251]],adsense:[[300,252]],sponsor:[[88,31]],sponsorbig:[[132,64]],module:[[88,31]],module_worldinpictures:[[320,50],[300,50]],promo:[[336,224]],ad_feature_rc:[[336,136]],native:[[10,10]],native_slice_l:[[5,5]],native_slice_r:[[5,5]],native_side_2:[[336,209]],native_main_small:[[384,258]],native_main_medium:[[464,258]],native_main_large:[[624,258]],parallax:[[976,400]],promo_feature_responsive:[[472,791]],responsive_box_1:[[8,1]],responsive_box_2:[[8,1]],verticalnavbar:[[20,20]],infeed:[[12,12]],platinum:[[88,31]]}}};e.exports={setGroups:function(e){n=e},setGroup:function(e,t){t.s&&t.f&&t.slots&&(n[e]=t,this.setGroupStart(e,t.s),this.setGroupFinish(e,t.f))},setGroupStart:function(e,t){"undefined"!=typeof n[e]&&"undefined"!=typeof n[e].s&&(n[e].s=t),"undefined"!=typeof n[e-1]&&"undefined"!=typeof n[e-1].f&&(n[e-1].f=t-1)},setGroupFinish:function(e,t){"undefined"!=typeof n[e]&&"undefined"!=typeof n[e].f&&(n[e].f=t),"undefined"!=typeof n[e+1]&&"undefined"!=typeof n[e+1].f&&(n[e+1].s=t+1)},getGroups:function(){return n},getGroup:function(e){return n[e]}}},function(e,t,n){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(210),a=s(i),r=n(258),o=s(r),c=n(260),u=s(c),l=n(259);t.default=Object.assign(a.default,{streamSense:o.default,sscHelper:u.default,setMetricOverride:l.setOverride}),e.exports=t.default},function(e,t,n){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(){var e,t,n=["startPlaylist","adRequest","adManagerLoaded","startAdvert","endAdvert","startProgramme","startPause","endPause","startSeek","endSeek","endProgramme","duration","uiinfo","volumeChange","startPreview","stopPreview"];for(e=0,t=n.length;e-1}var i=n(239);e.exports=s},function(e,t,n){function s(e,t){var n=this.__data__,s=i(n,e);return s<0?n.push([e,t]):n[s][1]=t,this}var i=n(239);e.exports=s},function(e,t,n){var s=n(221),i=n(228),a=s(i,"Map");e.exports=a},function(e,t,n){function s(e){return i(this,e).delete(e)}var i=n(246);e.exports=s},function(e,t,n){function s(e,t){var n=e.__data__;return i(t)?n["string"==typeof t?"string":"hash"]:n.map}var i=n(247);e.exports=s},function(e,t){function n(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}e.exports=n},function(e,t,n){function s(e){return i(this,e).get(e)}var i=n(246);e.exports=s},function(e,t,n){function s(e){return i(this,e).has(e)}var i=n(246);e.exports=s},function(e,t,n){function s(e,t){return i(this,e).set(e,t),this}var i=n(246);e.exports=s},function(e,t,n){function s(e){return null==e?"":i(e); }var i=n(252);e.exports=s},function(e,t,n){function s(e){if("string"==typeof e)return e;if(a(e))return c?c.call(e):"";var t=e+"";return"0"==t&&1/e==-r?"-0":t}var i=n(253),a=n(254),r=1/0,o=i?i.prototype:void 0,c=o?o.toString:void 0;e.exports=s},function(e,t,n){var s=n(228),i=s.Symbol;e.exports=i},function(e,t,n){function s(e){return"symbol"==typeof e||i(e)&&o.call(e)==a}var i=n(255),a="[object Symbol]",r=Object.prototype,o=r.toString;e.exports=s},function(e,t){function n(e){return!!e&&"object"==typeof e}e.exports=n},function(e,t,n){function s(e,t){if(i(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!a(e))||(o.test(e)||!r.test(e)||null!=t&&e in Object(t))}var i=n(159),a=n(254),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;e.exports=s},function(e,t,n){function s(e){if("string"==typeof e||i(e))return e;var t=e+"";return"0"==t&&1/e==-a?"-0":t}var i=n(254),a=1/0;e.exports=s},function(e,t,n){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n=0?e:Object.assign({},e,{adsRendered:e.adsRendered.concat(t),adsEmpty:n?e.adsEmpty.concat(t):e.adsEmpty})}),s("ad:render",function(e,t){return Object.assign({},e,{adsSlots:e.adsSlots.concat(t)})}),s("ad:render:close",function(e,t){return Object.assign({},e,{adsShut:e.adsShut.concat(t)})})},e.exports=i},function(e,t){"use strict";e.exports=function(e){var t=window.onload;"function"!=typeof window.onload?window.onload=e:window.onload=function(){t&&t(),e()}}},function(e,t){"use strict";var n=function(){function e(e,t){var n=[],s=!0,i=!1,a=void 0;try{for(var r,o=e[Symbol.iterator]();!(s=(r=o.next()).done)&&(n.push(r.value),!t||n.length!==t);s=!0);}catch(e){i=!0,a=e}finally{try{!s&&o.return&&o.return()}finally{if(i)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){a().then(i).then(o).then(c).then(u).then(d).then(f).then(function(e){k(e.html)}).catch(function(e){"not_signin_page"!==e&&document.dispatchEvent(new CustomEvent("bbc-user-event",{detail:{container:"sign-in-dismissible",label:e}}))})},i=function(){return window.bbcdotcom.config.isSigninEnabled()===!0?Promise.resolve(!0):Promise.reject("signin_not_enabled")},a=function(){var e=bbcdotcom.adverts.keyValues.get("keyword");return e&&"signin"===e?Promise.resolve(!0):bbcdotcom.config.isFPSigninEnabled()?Promise.resolve(!0):/[?|&]idcta-debug/.test(window.location.href)?Promise.resolve(!0):Promise.reject("not_signin_page")},r=function(e){var t=void 0;try{t=window[e];var n="__storage_test__";return t.setItem(n,n),t.removeItem(n),!0}catch(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&t&&0!==t.length}},o=function(){return r("localStorage")?Promise.resolve(!0):Promise.reject("no_local_storage")},c=function(){var e=[window.bbcuser.isSignedIn(),window.bbcuser.allowsPerformanceCookies()];return Promise.all(e).then(function(e){var t=n(e,2),s=t[0],i=t[1];return s?Promise.reject("user_signed_in"):i?Promise.resolve(!0):Promise.reject("cookies_disabled")})},u=function(){return window.require(["idcta-v2/config"],function(e){var t=e["id-availability"];return"GREEN"!==t?Promise.reject("idcta_flagpole"):Promise.resolve(!0)})},l=604800,d=function(){var e=window.localStorage.getItem(v),t=e?parseInt(e,10):0;return 0===t||t+l",c.appendChild(u);var l=document.createElement("span");l.className="sign_in-why-text",l.textContent=S,c.appendChild(l),t.appendChild(c),m=[i,a,r,c],_=1;for(var d=function(e){var t=e.keyCode||e.which;switch(t){case 27:e.preventDefault(),A();break;case 9:e.preventDefault();var n=m.length-1;_=e.shiftKey?0===_?n:_-1:_===n?0:_+1,setTimeout(function(){m[_].focus()},200)}},f=0;f0&&(o("Flex Frame Ad detected"),i.addTagClass(t,"flexframe-ad"),i.addTagClass(t.parentElement,"flexframe-ad"),s&&i.addTagClass(s,"flexframe-ad"))}catch(e){}},y=function(e){this.adID=e,this.domId=u+e,this.width=null,this.height=null,this.branding=!1,this.preloaded=!1,this.closed=!1,this.rendered=!1,this.eventSize=null,this.contents={base:!1},this.element=null,this.adType="standard",this.sizeSet=!1,this.isResponsive=!1,this.isFluid=!1,this.allowScreenReader=!1,this.currentSlotGroups=[],this.registeredSlotGroups=[],this.sticky={isSticky:!1}};y.prototype.setClosed=function(e){return this.closed=e,this.closed},y.prototype.close=function(){o("close "+this.adID),this.setClosed(!0),this.shut()},y.prototype.isCloseAd=function(){return this.closed},y.prototype.setRendered=function(e){return this.rendered=e,this.rendered},y.prototype.isRendered=function(){return this.rendered},y.prototype.setConfig=function(e){var t;for(t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);return this},y.prototype.setBaseContent=function(){return this.contents.base=p(this.domId),this.contents.base},y.prototype.getBaseContent=function(){return this.contents.base},y.prototype.setCurrentSlotGroups=function(e){return o("settings slot groups for "+this.adID+" to "+e),this.currentSlotGroups=e,this},y.prototype.getCurrentSlotGroups=function(){return this.currentSlotGroups},y.prototype.registerSlotGroups=function(e){this.registeredSlotGroups.push(e)},y.prototype.getRegisteredSlotGroups=function(){return this.registeredSlotGroups},y.prototype.setPreloaded=function(e){return this.preloaded=e,this},y.prototype.isPreloaded=function(){return this.preloaded},y.prototype.domElement=function(){return this.getDomElement()},y.prototype.getDomElement=function(){return this.element||(this.element=document.getElementById(this.domId)),!this.element&&this.domId.indexOf("adsense")>-1&&(this.element=document.getElementsByClassName(this.domId)[0]),this.element},y.prototype.getAdvertDimensions=function(){var e=document.getElementById(this.domId);return{width:this.width||(e?e.clientWidth:0),height:this.height||(e?e.clientHeight:0)}},y.prototype.setWidth=function(e){return this.width=e,this},y.prototype.getWidth=function(){return parseInt(this.getAdvertDimensions().width,10)},y.prototype.setHeight=function(e){return this.height=e,this},y.prototype.getHeight=function(){return parseInt(this.getAdvertDimensions().height,10)},y.prototype.getCreativeHeight=function(){return bbcdotcom.objects("bbcdotcom.config.isAsync")?this.getHeight():this.getHeight()-c},y.prototype.setAdDomHeightWidth=function(e,t,n){var s=this.getDomElement();if(null!==s&&(!this.sizeSet||n)){var i=35;"undefined"!=typeof t&&(s.style.width=t+"px"),s.style.height=e+i+"px",this.sizeSet=!0}},y.prototype.setIframeSize=function(e,t){var n,s=this.getDomElement(),i=s.getElementsByTagName("iframe"),r=s.getElementsByTagName("ins");this.setAdDomHeightWidth(e,t,!0),this.setEventSize([t,e]),i.length>=1&&"undefined"!=typeof i[0]&&("undefined"!=typeof t&&(i[0].width=t),i[0].height=e);for(n in r)"undefined"!=typeof r[n].style&&("undefined"!=typeof t&&(r[n].style.width=t+"px"),r[n].style.height=e+"px");return this.openAsync(t,e),a.trigger("ad:resize",this.adID,t,e),a.trigger("ad:resize:"+this.adID,this.adID,t,e),this},y.prototype.setResponsive=function(e){return this.isResponsive=e,i.addTagClass(this.getDomElement(),"bbccom_responsive"),this},y.prototype.getAdTextKey=function(){var e;for(e in g)if(void 0!==this.adID&&"undefined"!=typeof this.adID.indexOf&&this.adID.indexOf(e)!==-1)return g[e];return g.default},y.prototype.getAdText=function(){return("undefined"==typeof this.hasAdText||this.hasAdText!==!1)&&("undefined"==typeof this.advertText?bbcdotcom.adverts.adText.getText(this.getAdTextKey()):this.advertText)},y.prototype.setAdText=function(e){0===this.adID.indexOf("sponsor")&&e&&/^[A-Za-z '\_-]+$/.test(e)&&(this.advertText=e,this.hasAdText=!0)},y.prototype.getAdInfoUrl=function(){return bbcdotcom.adverts.adText.getInfoUrl(this.getAdTextKey())},y.prototype.getAdId=function(){return this.adID},y.prototype.getAdName=function(){return this.getAdId()},y.prototype.show=function(){var e=p(this.domId);this.element=document.getElementById(this.domId),!e||this.isCloseAd()||bbcdotcom.objects("bbcdotcom.config.isAsync")||(this.setClosed(this.contents.base===e&&-1===e.indexOf("iframe")),this.open()),this.disableScreenReaderForAdContent()},y.prototype.disableScreenReaderForAdContent=function(){var e,t,n,s,i,a=document.getElementsByClassName("bbccom_advert");for(t=0;t0&&(i.removeBodyTagClass(this.domId+"_big"),i.removeBodyTagClass(this.domId+"_small")),a.trigger("ad:close",this.adID),a.trigger("ad:close:"+this.adID,this.adID))},y.prototype.isShut=function(){var e=this.getDomElement();return e.className.indexOf(d)!==-1},y.prototype.setTitleForSponsorAds=function(){this.branding||"sponsor_section"!==this.adID||(this.branding=new s(bbcdotcom.adverts.keyValues.get("keyword")))},y.prototype.open=function(){var e=this.getDomElement();this.setTitleForSponsorAds(),this.isResponsive&&i.addTagClass(e,"bbccom_responsive"),this.isCloseAd()||(i.removeTagClass(e,f),i.removeTagClass(e,d),i.removeTagClass(e.parentElement,d),i.addBodyTagClass(u+this.adID),i.addTagClass(e.parentElement,l),this.domId.indexOf("leaderboard")!==-1&&b(this.domId),r.getCurrentGroupId()>2&&this.domId.indexOf("mpu")>0&&(i.removeBodyTagClass(this.domId+"_big"),i.removeBodyTagClass(this.domId+"_small"),i.addBodyTagClass(this.domId+"_"+(this.height>251?"big":"small"))),this.disableScreenReaderForAdContent())},y.prototype.openAsync=function(e,t){var n=this.getDomElement();this.setWidth(e),this.setHeight(t),this.isResponsive&&i.addTagClass(n,"bbccom_responsive"),this.isFluid&&i.addTagClass(n,"bbccom_fluid");var s=this;setTimeout(function(){var n=s.isCloseAd();o("OpenAsync Timer ad:"+s.getAdId()+", isCloseAd: "+n),n||(i.removeTagClass(s.element,d),i.removeTagClass(s.element.parentElement,d),i.addTagClass(s.element.parentElement,l)),a.trigger("ad:done",s.adID,e,t),a.trigger("ad:done:"+s.adID,s.adID,e,t),r.reset()},300),i.removeTagClass(document.getElementById("bbccom_"+this.adID+"_text"),f),this.domId.indexOf("leaderboard")!==-1&&b(this.domId),i.addBodyTagClass(this.domId),r.getCurrentGroupId()>2&&this.domId.indexOf("mpu")>0&&(i.removeBodyTagClass(this.domId+"_big"),i.removeBodyTagClass(this.domId+"_small"),i.addBodyTagClass(this.domId+"_"+(this.height>251?"big":"small"))),a.trigger("ad:open",this.adID,e,t),a.trigger("ad:open:"+this.adID,this.adID,e,t)},y.prototype.setEventSize=function(e){this.eventSize=e},y.prototype.renderIfReady=function(){try{null!==this.getDomElement()&&this.isRendered()&&(this.isCloseAd()||null===this.eventSize||"undefined"==typeof this.eventSize[0]||"undefined"==typeof this.eventSize[1]?(a.trigger("ad:render:close",this.domId),o("renderIfReady about to call .close()"),this.close()):setTimeout(function(){this.isCloseAd()?(a.trigger("ad:render:close",this.domId),o("renderIfReady ",this.domId," isCloseAd true - about to call .close()"),this.close()):this.openAsync(this.eventSize[0],this.eventSize[1])}.bind(this),200))}catch(e){o.error("Failed during renderEndedCallback",e)}},y.prototype.setCurrentSlotVisible=function(){var e,t,n=this.getRegisteredSlotGroups();for(t in n)n.hasOwnProperty(t)&&(e=document.getElementById(u+this.adID+"_"+n[t].join("_")),i.removeTagClass(e,l));this.currentSlotGroups&&this.currentSlotGroups.length>0&&!this.closed&&(e=document.getElementById(u+this.adID+"_"+this.currentSlotGroups.join("_")),i.addTagClass(e,l)),e=null},y.prototype.hasAnyGroupAlreadyBeenRegistered=function(e){var t,n,s;for(s=[].concat.apply([],this.registeredSlotGroups).join(),t=0,n=e.length;t=10&&clearInterval(t)}var t=void 0,n=void 0,s=void 0,i=0;this.adID.includes("interstitial")||this.adID.includes("wallpaper")||(n=this.getAdText(),n&&(s=this.getAdInfoUrl(),t=setInterval(e.bind(this),50)))},y.prototype.hideAdContainer=function(){var e=document.getElementById(this.domId);if(e)try{e.style.display="block",e.style.height="0px",e.style.overflow="hidden",e.style.padding="0"}catch(e){}},y.prototype.currentSlotHasGroup=function(e){return this.getCurrentSlotGroups().indexOf(e)>=0},e.exports=y},function(e,t,n){"use strict";var s=n(152),i=n(268),a=n(176);e.exports=function(e){var t,n=!1,r=!1,o={firstperson:{title:"First Person",url:"/news/magazine-14633099"},firstpersonbigdreams:{title:"First Person Big Dreams",url:"/news/magazine-14633099"},picturethis:{title:"Picture This",url:"/news/magazine-14760628"},livingonline:{title:"Living Online",url:"/news/magazine-14760626"},rab:{title:"Running a Business",url:"/news/business-16611973"},powerofart:{title:"Power of Art",url:"/news/magazine-21459225"},alteredstates:{title:"Altered States",url:"/news/magazine-14760627"},uselection:{title:"US Election",url:"/news/world-us-canada-15949569"},jubilee:{title:"The Diamond Jubilee",url:"/news/uk-17500000",altTitle:"Back to Queen's Diamond Jubilee"},entrepreneurship:{title:"Entrepreneurship",url:"/news/business-22434141"},energy:{title:"Energy",url:"/news/business-15521824"},knowledgeeconomy:{title:"Knowledge economy",url:"/news/business-12686570"},ceoguru:{title:"CEO Guru",url:"/news/business-20071226"},theboss:{title:"The Boss",url:"/news/business-22449886"},makingtime:{title:"Making Time",url:"/news/magazine-24117219"},thinkingbusiness:{title:"Thinking Business",url:"/news/business-22449887"},techbiz:{title:"Technology of Business",url:"/news/business-11428889"},meettheteam:{title:"Meet the team",url:"/news/world-radio-and-tv-23426239"},"100women":{title:"100 Women",url:"/news/world-24371433"},businessoftennis:{title:"Business of Tennis",url:"/news/business-25319175"},nextsiliconvalleys:{title:"The Next Silicon Valleys",url:"/news/technology-25852150"},businessofgiving:{title:"The Business of Giving",url:"/news/business-19182463"},howtosucceedin:{title:"How to Succeed In",url:"/news/business-29617902"},komladumor:{title:"Komla Dumor Award",url:"/news/world-radio-and-tv-30725772"},lifeofluxury:{title:"Life of Luxury",url:"/news/business-31157861"},themakingofme:{title:"The Making of Me",url:"/news/business-32660236"},singaporeat50:{title:"Singapore at 50",url:"/news/world-asia-31522499"},madeinamerica:{title:"Made in America",url:"/news/business-30533292"},tomorrowscities:{title:"Tomorrow's Cities",url:"/news/technology-23517670"},mybusiness:{title:"My Business",url:"/news/business-15870435"},newentrepreneurs:{title:"The New Entrepreneurs",url:"/news/business-27614930"},africabeats:{title:"Africa Beats",url:"/news/entertainment-arts-17679490"},asiabeats:{title:"Asia Beats",url:"/news/entertainment-arts-26040146"},latambeats:{title:"LatAm Beats",url:"/news/world-latin-america-19523770"},middleeastbeats:{title:"Middle East Beats",url:"/news/world-middle-east-30555154"},businessbrain:{title:"Business Brain",url:"/news/business-32339576"}};return function(){t=a.getKeywordParts(),"undefined"!=typeof o[e]?(n=o[e].url,r=o[e].title):t&&(n=t.href,r=t.title)}(),"news"!==s.getSections()[0]&&"worldservice"!==s.getSections()[0]||requirejs(["module/bootstrap","module/indexTitle"],function(e,t){var s,a="sponsoredByText",o=i.getText(a),c=i.getInfoUrl(a);"undefined"!=typeof t&&"undefined"!=typeof t.setTitleHtml&&t.getIndexTitle().element.length>0&&(s=n&&t.getIndexTitle().element.find("a").length>=1?''+r+"":t.getIndexTitle().element[0].textContent,t.setTitleHtml(''+s+'"))}),{getUrl:function(){return n},getTitle:function(){return r}}}},function(e,t,n){"use strict";var s=n(143),i=n(152),a=n(153),r={sport:{"ultimate-performers":{"*":{inAssociationWithText:"Partnered Content Presented by"}},"move-like-never-before":{"*":{inAssociationWithText:"Partnered Content Presented by"}},"home-of-the-english-premier-league":{"*":{inAssociationWithText:"Partnered Content Presented by"}}}},o={advertisementText:"advertInfoPageUrl",inAssociationWithText:"associationInfoPageUrl",sponsoredByText:"associationInfoPageUrl",advertisingPartnersText:"associationInfoPageUrl",adsByGoogleText:"googleAdsPageUrl"},c="advertInfoPageUrl";e.exports={getText:function(e){var t,n,o,c=s.cleanArray(i.getSections()),u=r;for(n=0,o=c.length;n{adText}',a='';e.exports={renderAd:function(e){var t="";return s.trigger("ad:render",e.adId),e.adText&&(t=this.substituteData(i,e)),t+=this.substituteData(a,e),document.write(t),t},substituteData:function(e,t){var n=e.replace(/\{[^{}]+\}/g,function(e){return t[e.replace(/[{}]+/g,"")]||e});return n}}},function(e,t,n){"use strict";var s=n(152),i=n(268),a=n(208),r=n(200),o=n(143),c=n(150),u=n(144)("adverts:adsenseRenderer"),l={news:{dataAdSlot:"6031494774"},weather:{dataAdSlot:"7287144776"},"weather/0":{dataAdSlot:"7949963556"},sport:{dataAdSlot:"4333678371"},worldservice:{arabic:{dataAdSlot:"5810411579"},hindi:{dataAdSlot:"5131780375"},mundo:{dataAdSlot:"2597116378"},portuguese:{dataAdSlot:"1027494774"},turkce:{dataAdSlot:"1120383176"}},default:{dataAdSlot:"2504227975"}},d=function(){var e=s.getSection(0),t=s.getSection(1).toString(),n=c.getWindowLocation();return/(adsense=)(\d{10})$/.test(window.location.href)?{dataAdSlot:RegExp.$2}:l[e]?0===n.pathname.indexOf("/weather/0")?(u("Adsense for ",e,"/0 = ",l["weather/0"]),l["weather/0"]):l[e][t]?(u("Adsense for ",e,"/",t," = ",l[e][t].dataAdSlot),l[e][t]):(u("Adsense for ",e," = ",l[e].dataAdSlot),l[e]):(u("No adsense data found for this page (",e,"/",t,"), using default ",l.default.dataAdSlot),l.default)},f=function(){function e(){setTimeout(function(){bbcdotcom.config.isNPA()&&adsbygoogle&&(adsbygoogle.requestNonPersonalizedAds=1); },600)}var t;return"undefined"==typeof window.adsbygoogle&&(t=document.createElement("script"),t.setAttribute("async","async"),t.setAttribute("src","//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"),t.setAttribute("onload",e()),document.body.appendChild(t),!0)},g=function(){var e,t,n=r.getCurrentGroupId(),s=[];!document.getElementById("bbccom_adsense")||document.getElementById("bbccom_adsense")&&document.getElementById("bbccom_adsense").getElementsByTagName("iframe").length<1||(e=document.getElementById("bbccom_adsense").getElementsByTagName("iframe")[0].width,s=document.getElementById("bbccom_adsense").parentElement.id.replace("bbccom_adsense_","").split("_"),t=s[s.length-1],5==t&&e3&&e<301?(u.debug("=== Opening adsense for current layout ==="),o.removeTagClass(document.getElementById("bbccom_adsense"),"bbccom_shut"),o.addTagClass(document.getElementById("bbccom_adsense"),"bbccom_visible")):(u.debug("=== Shutting adsense for current layout ==="),o.removeTagClass(document.getElementById("bbccom_adsense"),"bbccom_visible"),o.addTagClass(document.getElementById("bbccom_adsense"),"bbccom_shut")),document.getElementById("bbccom_adsense").getElementsByTagName("iframe")[0].tabIndex="-1")};e.exports={loadGoogleAdsense:f,getSettings:d,renderAd:function(e,t){var n,s,o=d(),c="adsByGoogleText",u=i.getText(c),l=i.getInfoUrl(c),g=window.document.documentElement.offsetWidth'+u+'
'}function a(e){var t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src=e;var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n)}var r=n(150),o=n(152),c={news:"bbc.com/News",sport:"bbc.com/Sport",fallback:"bbc.com/News"},u=!1;e.exports={sanitiseDataSrc:s,renderAd:function(e){var t=o.getSection(0),n=c[t]||c.fallback,s="bbccom_"+e,l=document.getElementById(s)?document.getElementById(s):document.querySelectorAll('*[id^="'+s+'"]')[0];if(!r.isIE7()&&r.isOutbrainEnabled()){var d=i(e,n);return u||(a("https://widgets.outbrain.com/outbrain.js"),u=!0),l&&(l.innerHTML=d),d}return!1}}},function(e,t,n){"use strict";var s=n(143),i=n(150),a=n(201),r=n(200),o=n(271),c=n(273),u=n(272);e.exports=function(e,t,l,d,f){var g=n(144)("adverts:slot");try{if(i.isActive("ads")&&"string"==typeof e&&e.length>0&&"undefined"!=typeof t){var p,b,y=a.getAd(e),m=r.getCurrentGroupId(),_=l?"bbccom_"+e+"_"+t.join("_")+"_preload":"bbccom_"+e+"_"+t.join("_"),v=document.getElementById(_),h="bbccom_"+e;if("undefined"!=typeof y&&"undefined"!=typeof y.getAdId()&&(p={adInfo:y.getAdInfoUrl(),adText:d||y.getAdText(),adDomId:h,adId:e},!y.hasAnyGroupAlreadyBeenRegistered(t))){if(y.registerSlotGroups(t),null===v){if(b=document.getElementsByTagName("script"),f="undefined"==typeof f?b[b.length-1].innerHTML.indexOf("bbcdotcom")===-1?b[b.length-2]:b[b.length-1]:f,v=s.getParentElementByClass(f,"bbccom_slot"),!v)return g.warn('"bbccom_slot" class not found for this slot "'+_+'"'),a.setCurrentAdId(void 0),!1;v.id=_}if(v.className+=" bbccom_"+y.adType+"_slot",t.indexOf(m)>=0)return y.setCurrentSlotGroups(t),"undefined"!=typeof l&&l&&y.setPreloaded(!0),a.setCurrentAdId(e),v.children[0].id=h,y.setCurrentSlotVisible(),0===e.indexOf("adsense")?u.renderAd():0===e.indexOf("outbrain")?c.renderAd(e):o.renderAd(p);a.setCurrentAdId(!1)}}}catch(e){g.error(e)}}},function(e,t){"use strict";e.exports=function(e,t,n){var s,i,a,r=bbcdotcom.adverts.layout.getCurrentGroupId();if(window.bbcdotcom&&bbcdotcom.ad&&bbcdotcom.isActive&&bbcdotcom.isActive("ads")){if(bbcdotcom.adverts.adFilter.isLazyLoadedSlot(e))return void bbcdotcom.lazyLoadAd(e,t,n);if(s=bbcdotcom.ad(e),"undefined"!=typeof s&&!s.hasAnyGroupAlreadyBeenRegistered([t])&&(s.registerSlotGroups(t),t.indexOf(r)>=0)){if(s.setCurrentSlotGroups(t),i=document.getElementById("bbccom_"+e+"_"+t.join("_")),a=i.firstElementChild||i.firstChild,a&&(a.id="bbccom_"+e),bbcdotcom.utils.addTagClass(i,"bbccom_"+s.adType+"_slot"),s.renderIfReady(),0!==e.indexOf("outbrain"))return bbcdotcom.adverts.adAsyncRenderer.renderAd(s,n);bbcdotcom.checkThirdPartyFirst(function(){return s.open(),bbcdotcom.adverts.outbrainRenderer.renderAd(e)})}}}},function(e,t,n){"use strict";var s=n(144)("adverts:slotInfinite"),i=n(277),a=function(e,t,n,a){s("Rendering Infinite Slot: ",{adId:e,groups:t,element:n,register:a});var r,o=t.join("_");try{r=i.getTemplate("adTemplates/infinite-slot").render({adId:e,groups:t,groupsClass:o,register:a})}catch(e){return s.error("Error rendering the template!"),null}return n?(s("Inserting rendered template into DOM element: ",{element:n,renderedTemplate:r}),void i.renderIntoElement(n,r)):(s("Returned rendered template for: "+e),r)};e.exports=a},function(e,t,n){"use strict";function s(){this.templates=c.reduce(function(e,t){return e[t]=n(278)("./"+t+".mustache"),e},{})}function i(e){if(a(e)===!0)e.parentNode.replaceChild(r(e),e);else for(var t=0,n=e.childNodes;t=0;n--)t.setAttribute(e.attributes[n].name,e.attributes[n].value);return t}var o=n(144)("templates:templateFactory"),c=["adTemplates/infinite-slot"];s.prototype.getTemplate=function(e){if(!this.templates.hasOwnProperty(e))throw o.error("Could not find template: "+e),new Error("Could not find template: "+e);return this.templates[e]},s.prototype.renderIntoElement=function(e,t){if(!e||!t)throw o.error("Require parameter not supplied",{element:e,html:t}),new Error("Required param not supplied");e.innerHTML=t;try{i(e)}catch(e){o.error("Error rendering template into DOM: ",e)}},e.exports=new s},function(e,t,n){function s(e){return n(i(e))}function i(e){return a[e]||function(){throw new Error("Cannot find module '"+e+"'.")}()}var a={"./adTemplates/infinite-slot.mustache":279};s.keys=function(){return Object.keys(a)},s.resolve=i,e.exports=s,s.id=278},function(e,t,n){var s=n(280);e.exports=function(){var e=new s.Template({code:function(e,t,n){var s=this;return s.b(n=n||""),s.b('"),s.fl()},partials:{},subs:{}},'',s);return e}()},function(e,t,n){!function(e){function t(e,t,n){var s;return t&&"object"==typeof t&&(void 0!==t[e]?s=t[e]:n&&t.get&&"function"==typeof t.get&&(s=t.get(e))),s}function n(e,t,n,s,i,a){function r(){}function o(){}r.prototype=e,o.prototype=e.subs;var c,u=new r;u.subs=new o,u.subsText={},u.buf="",s=s||{},u.stackSubs=s,u.subsText=a;for(c in t)s[c]||(s[c]=t[c]);for(c in s)u.subs[c]=s[c];i=i||{},u.stackPartials=i;for(c in n)i[c]||(i[c]=n[c]);for(c in i)u.partials[c]=i[c];return u}function s(e){return String(null===e||void 0===e?"":e)}function i(e){return e=s(e),l.test(e)?e.replace(a,"&").replace(r,"<").replace(o,">").replace(c,"'").replace(u,"""):e}e.Template=function(e,t,n,s){e=e||{},this.r=e.code||this.r,this.c=n,this.options=s||{},this.text=t||"",this.partials=e.partials||{},this.subs=e.subs||{},this.buf=""},e.Template.prototype={r:function(e,t,n){return""},v:i,t:s,render:function(e,t,n){return this.ri([e],t||{},n)},ri:function(e,t,n){return this.r(e,t,n)},ep:function(e,t){var s=this.partials[e],i=t[s.name];if(s.instance&&s.base==i)return s.instance;if("string"==typeof i){if(!this.c)throw new Error("No compiler available.");i=this.c.compile(i,this.options)}if(!i)return null;if(this.partials[e].base=i,s.subs){t.stackText||(t.stackText={});for(key in s.subs)t.stackText[key]||(t.stackText[key]=void 0!==this.activeSub&&t.stackText[this.activeSub]?t.stackText[this.activeSub]:this.text);i=n(i,s.subs,s.partials,this.stackSubs,this.stackPartials,t.stackText)}return this.partials[e].instance=i,i},rp:function(e,t,n,s){var i=this.ep(e,n);return i?i.ri(t,n,s):""},rs:function(e,t,n){var s=e[e.length-1];if(!d(s))return void n(e,t,this);for(var i=0;i=0;u--)if(r=n[u],a=t(e,r,c),void 0!==a){o=!0;break}return o?(i||"function"!=typeof a||(a=this.mv(a,n,s)),a):!i&&""},ls:function(e,t,n,i,a){var r=this.options.delimiters;return this.options.delimiters=a,this.b(this.ct(s(e.call(t,i)),t,n)),this.options.delimiters=r,!1},ct:function(e,t,n){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(e,this.options).render(t,n)},b:function(e){this.buf+=e},fl:function(){var e=this.buf;return this.buf="",e},ms:function(e,t,n,s,i,a,r){var o,c=t[t.length-1],u=e.call(c);return"function"==typeof u?!!s||(o=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(u,c,n,o.substring(i,a),r)):u},mv:function(e,t,n){var i=t[t.length-1],a=e.call(i);return"function"==typeof a?this.ct(s(a.call(i)),i,n):a},sub:function(e,t,n,s){var i=this.subs[e];i&&(this.activeSub=e,i(t,n,this,s),this.activeSub=!1)}};var a=/&/g,r=//g,c=/\'/g,u=/\"/g,l=/[&<>\"\']/,d=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}}(t)},function(e,t,n){"use strict";var s,i=n(150),a=n(201),r=n(273),o=[],c=function(){"undefined"!=typeof nol_t&&(nol_t({cid:"au-bbc",content:"0",server:"secure-au"}).record().post(),clearInterval(s))},u=function(){"undefined"!=typeof nol_t&&(nol_t({cid:"nz-bbc",content:"0",server:"secure-nz"}).record().post(),clearInterval(s))},l=function(e){var t,n;t=document.createElement("script"),t.async=!0,t.type="text/javascript",t.src=e,n=document.getElementsByTagName("body")[0],n.appendChild(t)};e.exports={write:function(){i.isAnalyticsEnabled()&&(i.isActive("nielsen-au")&&(l("https://secure-au.imrworldwide.com/v60.js"),o.push("nielsen_au")),i.isActive("nielsen-nz")&&(l("https://secure-nz.imrworldwide.com/v60.js"),o.push("nielsen_nz")),i.isActive("nielsen-us")&&(!function(){var e=new Image(1,1);e.onerror=e.onload=function(){e.onerror=e.onload=null},e.src=["https://secure-us.imrworldwide.com/cgi-bin/m?ci=us-804789h&cg=0&cc=1&si=",encodeURI(window.location.href),"&rp=",encodeURI(document.referrer),"&ts=compact&rnd=",(new Date).getTime()].join("")}(),o.push("nielsen_us")),function(){var e=document.createElement("script");e.type="text/javascript",e.async=!0,e.src="https://me-ssl.effectivemeasure.net/em.js";var t=document.getElementsByTagName("head")[0];t.appendChild(e)}(),o.push("effective_measure"),"undefined"!=typeof a.getAd("outbrain_tr_1")&&(r.renderAd("outbrain_tr_1"),o.push("outbrain")))},postWrite:function(){i.isActive("analytics")&&(i.isActive("nielsen-au")&&(s=setInterval(c,500),o.push("nielsen_au-postWrite")),i.isActive("nielsen-nz")&&(s=setInterval(u,500),o.push("nielsen_nz-postWrite")))},getLoaded:function(){return o},r:function(){o=[]}}},function(e,t,n){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}var i,a=n(150),r=s(a),o=n(143),c=s(o),u=n(153),l=s(u),d=n(152),f=s(d),g=n(198),p=s(g),b=n(275),y=s(b),m=n(276),_=s(m),v=n(200),h=s(v),S=n(274),P=s(S),k=n(201),A=s(k),E=n(207),T=s(E),w=n(204),I=s(w),x=n(261),C=s(x),L=n(176),N=s(L),O=n(208),D=s(O),B=n(199),R=s(B),U=n(283),F=n(209),M=n(144)("adverts:ad"),G={slot:function(e,t,n,s,i){return!(!e||!t)&&(0,P.default)(e,t,n,s,i)},asyncSlot:y.default,slotAsync:function(e,t,n,s){return!(!e||!t)&&(0,y.default)(e,t,s)},slotInfinite:function(e,t,n,s){return(0,_.default)(e,t,n,s)},getCurrentGroupId:function(){return h.default.getCurrentGroupId()},receiveMessage:function(e){var t=/(www|m)\.{0,1}(test|int|stage){0,1}\.bbc\.com$/;if(null!==t.exec(e.origin)||"http://pal.sandbox.dev.bbc.com"===e.origin||"http://m.sandbox.dev.bbc.com"===e.origin){var n;try{n=JSON.parse(e.data)}catch(e){return}"undefined"!=typeof n.slot&&(M("receiveMessage about to call .close()"),A.default.getAd(n.slot).close(),e.source.postMessage(JSON.stringify({success:!0}),"*"))}},registerSlot:function(e,t){var n=t.join("_"),s=A.default.registerAd(e);s.isPreloaded()&&e&&t&&(h.default.moveAd("bbccom_"+e+"_"+n+"_preload","bbccom_"+e+"_"+n),A.default.getAd(e).show())},reset:function(){return h.default.reset()},show:function(){i=A.default.getCurrentAd(),"undefined"!=typeof i&&i.show()},isActive:function(e){return r.default.isActive(e)},setAdKeyValue:function(e,t){N.default.set(e,t)},setAdUnit:function(e){I.default.setAdUnit(e)},setLocale:function(e,t){l.default.set(e,t)},ad:function(e){return A.default.getAd(e)},setGroupStartWidth:function(e,t){return D.default.setGroupStart(e,t)},setConfig:r.default.rehydrate.bind(r.default),registerAd:function(e,t,n){return"string"==typeof e&&0===e.indexOf("outbrain")?void bbcdotcom.checkThirdPartyFirst(function(){return bbcdotcom.adverts.outbrainRenderer.renderAd(e)}):void R.default.registerAd(e,t,n)},lazyLoadAd:function(e,t){R.default.lazyLoadAd(e,t)},getFeatures:U.getFeatures,getFeature:U.getFeature,refreshAd:function(e,t,n){var s,i,a="bbccom_",r="",o=o.getAll(),c=A.default.getAd(e),u=document.getElementById(a+e),l=document.createElement("a"),d=document.createElement("iframe"),f=c.getAdInfoUrl(),g=c.getAdText();for(s in o)o.hasOwnProperty(s)&&(r+=";"+s+"="+o[s]);i="https://ad.doubleclick.net"+I.default.get().replace("/4817","/N4817/adi")+";slot="+e+";sz="+t+r+";ord="+Math.random().toString().slice(2,16)+";tile=1;iframe=yes?",d.src=i,d.width=t.split("x")[0],d.height=t.split("x")[1],d.scrolling="no",d.style.border="none",d.style.overflow="hidden",l.innerHTML=g,l.href=f,l.className="bbccom_text",u.innerHTML="",u.style.width=t.split("x")[0]+"px",u.className=u.className.replace("bbccom_display_none",""),u.appendChild(l),u.appendChild(d),A.default.getAd(e).open()},trackEvent:function(){},checkThirdPartyFirst:function(e,t){var n=e.bind(t),s=["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE","IS","LI","NO","CH"];bbcdotcom.config.isThirdPartyDisabled()&&void 0===bbcdotcom.config.isEU()?window.bbcuser&&window.bbcuser.getCountry&&"function"==typeof window.bbcuser.getCountry?window.bbcuser.getCountry().then(function(e){var t=!!e&&s.indexOf(e.toUpperCase())!==-1;bbcdotcom.config.setEU(t),n()}):window.orb&&window.orb.fig&&"function"==typeof window.orb.fig&&(bbcdotcom.config.setEU(window.orb.fig("eu")),n()):n()},reInit:function(e){var t={title:e.headline,referrer:e.referrer||""},n=e.url||"",s=new p.default;f.default.r(),N.default.r(),G.setConfig(e),"undefined"!=typeof e.headline&&"undefined"!=typeof e.summary&&s.set(e.headline+" "+e.summary),f.default.build(!0,n),I.default.init(h.default.getClientWidth(),void 0,f.default.getSections("advert"),f.default.getSections()),N.default.init(c.default.createWindowLocation(n),t),"undefined"!=typeof e.assetType&&N.default.set("asset_type",e.assetType)},resetPage:function(e){var t,n=r.default.getWindowLocation().href||"",s=c.default.createWindowLocation(e.url),i=e.disableAdUnit||!1;if(r.default.isAdsEnabled()&&(!r.default.isSportApp()||r.default.isSportApp()&&r.default.isAdsportappEnabled())){if(N.default.r(),R.default.reset(),r.default.init(bbcdotcomConfig,bbcdotcom.data,s,{title:e.title,description:e.description,referrer:n}),f.default.build(!0),e.adsToDisplay&&(t=T.default.build(e.adsToDisplay)),t){window.bbcdotcom.adsToDisplay=t;for(var a=0,o=t.length;a0&&void 0!==arguments[0]?arguments[0]:null;if(null===e)return new u.default({},n);e=e.toLowerCase();var t=o.default.getFeatures(),n=o.default.getPalEnv(),s=t.hasOwnProperty(e)?Object.assign({name:e},t[e]):{name:e};return new u.default(s,n)}function a(){var e=o.default.getFeatures(),t=(o.default.getPalEnv(),{});for(var n in e)e.hasOwnProperty(n)&&(t[n]=i(n));return t}Object.defineProperty(t,"__esModule",{value:!0}),t.getFeature=i,t.getFeatures=a;var r=n(150),o=s(r),c=n(284),u=s(c)},function(e,t,n){"use strict";function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e){return this.envs.includes(e)||0===this.envs.length}function a(){return this.on}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},n=t.name,i=void 0===n?"unknown-feature":n,a=t.envs,r=void 0===a?[]:a,c=t.on,u=void 0!==c&&c,l=t.options,d=void 0===l?{}:l,f=t.override,g=void 0===f?null:f,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.PAL_ENV_LIVE;s(this,e),this.name=i,this.envs=r,this.on=u,this.options=d,this.override=g,this.palEnv=p}return r(e,[{key:"getName",value:function(){return this.name}},{key:"isEnabled",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.palEnv;return null!==this.override?this.override:i.call(this,e)&&a.call(this)}},{key:"getOptions",value:function(){return this.options}},{key:"getOption",value:function(e){var t=this.getOptions();return t.hasOwnProperty(e)?t[e]:null}}]),e}();t.default=c,e.exports=t.default},function(e,t){"use strict";var n=Object.assign||function(e){for(var t=1;ts.heightLimit||(e[t]=i(n,s))},n=function(t){delete e[t]},s=function(){return e},a=function(){Object.keys(e).forEach(function(t){e[t].triggerResize()})},r=function(){var t=0;window.addEventListener("scroll",function(){t=window.pageYOffset,Object.keys(e).forEach(function(n){e[n].update(t)})},!1)},o=function(){var e=null,t=window.outerWidth;window.addEventListener("resize",function(n){n.target.outerWidth!==t&&(t=n.target.outerWidth,e||a(),clearTimeout(e),e=setTimeout(function(){e=null,a()},100))})},c=function(){window.addEventListener("orientationchange",function(){setTimeout(function(){Object.keys(e).forEach(function(t){e[t].triggerResize()})},1e3)})};(function(){r(),o(),c()})();return{add:t,remove:n,list:s}}(),i=function(e,t){var n=0,s=1,i=2,a="parent"===t.applyTo?e.parentElement:e,r=n,o=null,c=null,u=null,l=!1,d=window.pageYOffset,f=function(e){if(!(e>i||ed:f(n);break;case d>=o&&d<=o+c:f(s);break;case o+cthis.maxDepth)throw new Error("Maximum recursion depth exceeded.");return e.populate(this.recursiveDeepCopy,t,n),this.depth--,n}},a.DeepCopier=s,a.deepCopiers=o,a.register=function(e){e instanceof s||(e=new s(e)),o.unshift(e)},a.register({canCopy:function(){return!0},create:function(e){return e instanceof e.constructor?t(e.constructor.prototype):{}},populate:function(e,t,n){for(var s in t)t.hasOwnProperty(s)&&(n[s]=e(t[s]));return n}}),a.register({canCopy:function(e){return e instanceof Array},create:function(e){return new e.constructor},populate:function(e,t,n){for(var s=0;se.length||s+i>n.length)return!1;for(;--i>=0;){var a=e.charAt(t++),r=n.charAt(s++);if(a!=r)return!1}return!0},t.exists=function(e){return"undefined"!=typeof e&&null!=e},!function(){var e=[],n=!1,s=!0,i=1e3;t.onSystemClockJump=function(t,a){e.push(t),n||(n=!0,i=a||i,s=+new Date,setInterval(function(){var t=s+i,n=+new Date;s=n;var a=n-t;if(Math.abs(a)>i)for(var r=0;r0)},i))}}();var t=t||{};t.hasPageVisibilityAPISupport=function(){if("undefined"==typeof document)return!1;var e=!1;return"undefined"!=typeof document.hidden?e=!0:"undefined"!=typeof document.mozHidden?e=!0:"undefined"!=typeof document.msHidden?e=!0:"undefined"!=typeof document.webkitHidden&&(e=!0),function(){return e}}(),t.getPageVisibilityAPI=function(){if("undefined"==typeof document)return null;var e,t,n;"undefined"!=typeof document.hidden?(e="hidden",t="visibilitychange",n="visibilityState"):"undefined"!=typeof document.mozHidden?(e="mozHidden",t="mozvisibilitychange",n="mozVisibilityState"):"undefined"!=typeof document.msHidden?(e="msHidden",t="msvisibilitychange",n="msVisibilityState"):"undefined"!=typeof document.webkitHidden&&(e="webkitHidden",t="webkitvisibilitychange",n="webkitVisibilityState");var s={hidden:e,visibilityChange:t,state:n};return function(){return s}}(),t.isTabInBackground=function(){if("undefined"==typeof document)return null;var e=t.getPageVisibilityAPI();return function(){return document[e.hidden]}}(),t.getBrowserName=function(){if(!navigator)return"";var e,t,n=navigator.userAgent||"",s=navigator.appName||"";return(t=n.indexOf("Opera"))!=-1||(t=n.indexOf("OPR/"))!=-1?s="Opera":(t=n.indexOf("Android"))!=-1?s="Android":(t=n.indexOf("Chrome"))!=-1?s="Chrome":(t=n.indexOf("Safari"))!=-1?s="Safari":(t=n.indexOf("Firefox"))!=-1?s="Firefox":(t=n.indexOf("IEMobile"))!=-1?s="Internet Explorer Mobile":"Microsoft Internet Explorer"==s||"Netscape"==s?s="Internet Explorer":(e=n.lastIndexOf(" ")+1)<(t=n.lastIndexOf("/"))?(s=n.substring(e,t),s.toLowerCase()==s.toUpperCase()&&(s=navigator.appName)):s="unknown",s},t.getBrowserFullVersion=function(){if(!navigator)return"";var e,t,n,s,i=navigator.userAgent||"",a=navigator.appName||"",r=navigator.appVersion?""+parseFloat(navigator.appVersion):"";return(t=i.indexOf("Opera"))!=-1?(r=i.substring(t+6),(t=i.indexOf("Version"))!=-1&&(r=i.substring(t+8))):(t=i.indexOf("OPR/"))!=-1?r=i.substring(t+4):(t=i.indexOf("Android"))!=-1?r=i.substring(t+11):(t=i.indexOf("Chrome"))!=-1?r=i.substring(t+7):(t=i.indexOf("Safari"))!=-1?(r=i.substring(t+7),(t=i.indexOf("Version"))!=-1&&(r=i.substring(t+8))):(t=i.indexOf("Firefox"))!=-1?r=i.substring(t+8):"Microsoft Internet Explorer"==a?(s=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})"),null!=s.exec(i)&&(r=parseFloat(RegExp.$1))):"Netscape"==a?(s=new RegExp("Trident/.*rv:([0-9]{1,}[.0-9]{0,})"),null!=s.exec(i)&&(r=parseFloat(RegExp.$1))):r=i.lastIndexOf(" ")+1<(t=i.lastIndexOf("/"))?i.substring(t+1):"unknown",r=r.toString(),(n=r.indexOf(";"))!=-1&&(r=r.substring(0,n)),(n=r.indexOf(" "))!=-1&&(r=r.substring(0,n)),(n=r.indexOf(")"))!=-1&&(r=r.substring(0,n)),e=parseInt(""+r,10),isNaN(e)&&(r=""+parseFloat(navigator.appVersion)),r},t.browserAcceptsLargeURLs=function(){return"undefined"==typeof window||(null!==window.ActiveXObject,!0)},t.isBrowser=function(){return"undefined"!=typeof window&&"undefined"!=typeof document},t.isWebSecure=function(){return"undefined"!=typeof document&&null!=document&&"s"===document.location.href.charAt(4)};var s=function(){var e=1e4;return function(t,s){function i(e){e=e||[];var n=[c,+new Date];return t&&n.push(t),e=Array.prototype.slice.call(e),n=n.concat(e)}function a(e){var t,i,a;if("boolean"==typeof s||!s)return!!s;if(a=e.join(" "),s instanceof Array&&s.length>0){for(t=0;te||s&&s.max&&n>s.max)&&(u=u.slice(-Math.floor(s.max/2)),u.push("Previous logs: "+n)),u.push(t)}var o=this,c="comScore",u=[];o.log=function(){var e=i(arguments);r(e),"undefined"!=typeof console&&"function"==typeof console.log&&a(e)&&console.log.apply(console,e)},o.warn=function(){var e=i(arguments);r(e),"undefined"!=typeof console&&"function"==typeof console.warn&&a(e)&&console.warn.apply(console,e)},o.error=function(){var e=i(arguments);r(e),"undefined"!=typeof console&&"function"==typeof console.error&&a(e)&&console.error.apply(console,e)},o.apiCall=function(e){for(var t=["API call to:",e],n=1;n=n))return t.cloneObject(e);if(a.start=n,a.end=s,0==e.length)return e.push(a),t.cloneObject(e);var r;for(r=0;r=e[r].start&&a.end<=e[r].end)return t.cloneObject(e);var o,c=!1;for(o=0;o=e[o].start||a.start>=e[o].start&&a.starth&&(h=d);var x=0,N=0;for(S=0,d;SN&&(N=d);s.ns_st_upc=v+"",s.ns_st_dupc=v-k+"",s.ns_st_iupc=v-A+"",v>A?s.ns_st_iupc=v-A+"":s.ns_st_iupc="0",s.ns_st_lpc=h+"",s.ns_st_dlpc=h-E+"",s.ns_st_upa=x+"",s.ns_st_dupa=x-T+"",x>w?s.ns_st_iupa=x-w+"":s.ns_st_iupa="0",s.ns_st_lpa=N+"",s.ns_st_dlpa=N-I+"";var D=t.isEmpty(s.ns_st_pc)?Q.getPauses():parseInt(s.ns_st_pc);s.ns_st_pc=D+"",s.ns_st_dpc=D-z+"";var B=t.isEmpty(s.ns_st_skc)?Q.getSeeks():parseInt(s.ns_st_skc);s.ns_st_skc=B+"",s.ns_st_dskc=B-H+"";var R=t.isEmpty(s.ns_st_bc)?Q.getBuffers():parseInt(s.ns_st_bc);s.ns_st_bc=R+"",s.ns_st_dbc=R-O+"";var F=t.isEmpty(s.ns_st_skt)?Q.getSeekingTime():parseInt(s.ns_st_skt);s.ns_st_skt=F+"",s.ns_st_dskt=F-U+"";var M=t.isEmpty(s.ns_st_ska)?Q.getSeekingAmount():parseInt(s.ns_st_ska);return s.ns_st_ska=M+"",s.ns_st_dska=M-j+"",i&&(s.ns_st_spc=Y+"",s.ns_st_apc=$+"",s.ns_st_sq=J+"",s.ns_st_asq=X+""),i||0!=Z?s.ns_st_sc=Z+"":s.ns_st_sc="1",t.extend(s,a,r),s},updateDeltaLabels:function(e){g=parseInt(e.ns_st_pt),_=parseInt(e.ns_st_et),L=parseInt(e.ns_st_bt),k=parseInt(e.ns_st_upc),E=parseInt(e.ns_st_lpc),T=parseInt(e.ns_st_upa),I=parseInt(e.ns_st_lpa),z=parseInt(e.ns_st_pc),H=parseInt(e.ns_st_skc),O=parseInt(e.ns_st_bc),U=parseInt(e.ns_st_skt),j=parseInt(e.ns_st_ska),Q.setSeekingDirection(0)},updateIndependentLabels:function(e){p=parseInt(e.ns_st_pt),A=parseInt(e.ns_st_upc),w=parseInt(e.ns_st_upa)},getVideoTrack:function(){return Q.getInternalLabel("ns_st_vt")},setVideoTrack:function(e){Q.setInternalLabel("ns_st_vt",e+"")},getAudioTrack:function(){return Q.getInternalLabel("ns_st_at")},setAudioTrack:function(e){Q.setInternalLabel("ns_st_at",e+"")},getSubtitleTrack:function(){return Q.getInternalLabel("ns_st_tt")},setSubtitleTrack:function(e){Q.setInternalLabel("ns_st_tt",e+"")},getCDN:function(){return Q.getInternalLabel("ns_st_cdn")},setCDN:function(e){Q.setInternalLabel("ns_st_cdn",e+"")},getSegmentPlaybackIntervals:function(){return h},setAssetPlaybackIntervals:function(e){h=e},getAssetPlaybackIntervals:function(){return S},incrementPauses:function(){W++},incrementSeeks:function(){q++},incrementPlayCounter:function(){J++},getPlayCounter:function(){return J},getBufferingTime:function(){return x},setBufferingTime:function(e){x=e},addBufferingTime:function(e){if(!isNaN(C)){var t=Q.getBufferingTime();t+=e-C,Q.setBufferingTime(t),C=NaN}},setPlaybackStartPosition:function(e){P=parseInt(e)},getPlaybackStartPosition:function(){return P},addInterval:function(e){isNaN(P)||isNaN(e)||(h=t.addNewPlaybackInterval(h,P,e,ee),S=t.addNewPlaybackInterval(S,P,e,ee),P=NaN)},getElapsedTime:function(){return y},setElapsedTime:function(e){y=e},addElapsedTime:function(e){if(!isNaN(m)){var t=Q.getElapsedTime();t+=e-m,Q.setElapsedTime(t),m=NaN}},getElapsedTimestamp:function(){return m},setElapsedTimestamp:function(e){m=e},addPlaybackTime:function(e){if(!isNaN(l)){var t=Q.getPlaybackTime();t+=e-l,Q.setPlaybackTime(t),l=NaN}},getPlaybackTime:function(){return u},getExpectedPlaybackPosition:function(e){return isNaN(l)?b:b+(e-l)},setPlaybackTimeOffset:function(e){b=e},getPlaybackTimeOffset:function(){return b},setPlaybackTime:function(e){u=e},getPlaybackTimestamp:function(){return l},setPlaybackTimestamp:function(e){l=e},setPreviousPlaybackTime:function(e){g=e},setPreviousPlaybackTimestamp:function(e){d=e},getBufferingTimestamp:function(){return C},setBufferingTimestamp:function(e){C=e},getPauses:function(){return W},setPauses:function(e){W=e},getSeeks:function(){return q},setSeeks:function(e){q=e},setSeeking:function(e){D=e},isSeeking:function(){return D},setCollectingSeekingTime:function(e){M=e},isCollectingSeekingTime:function(){return M},setAssetStarted:function(e){s=e},isAssetStarted:function(){return s},setPlaybackStarted:function(e){i=e},isPlaybackStarted:function(){return i},setSeekingTimestamp:function(e){B=e},getSeekingTimestamp:function(){return B},addSeekingTime:function(e){if(!isNaN(B)){var t=Q.getSeekingTime();t+=e-B,Q.setSeekingTime(t),B=NaN}},getSeekingTime:function(){return R},setSeekingTime:function(e){R=e},setSeekingTimeBeforeEnd:function(e){K=e},getSeekingTimeBeforeEnd:function(){return K},setSeekStartPosition:function(e){F=e},getSeekStartPosition:function(){return F},setSeekingAmount:function(e){G=e},getSeekingAmount:function(){return G},addSeekingAmount:function(e){var t=Q.getSeekingAmount();t+=Math.abs(e-F),Q.setSeekingAmount(t);var n;F==e?n=0:F>e?n=-1:Fb&&(b=t)},setLabels:function(e){null!=e&&t.extend(c,e)},getLabels:function(){return c},setLabel:function(e,t){var n={};n[e]=t,k.setLabels(n)},getLabel:function(e){return c[e]},getAsset:function(){return s},addInternalErrorFlag:function(e){for(var t=0;t0&&(a.ns_st_ie=(a.ns_st_ie?a.ns_st_ie+";":"")+P.join(";")),t.extend(a,o,c),e.getPlaybackSession().getAsset().createLabels(a,i),a},incrementPlayCounter:function(){h++},incrementPauses:function(){v++},addPlaybackTime:function(e){if(!isNaN(r)){var t=k.getPlaybackTime();t+=e-r,k.setPlaybackTime(t),r=NaN}},addBufferingTime:function(e){if(!isNaN(i)){var t=k.getBufferingTime();t+=e-i,k.setBufferingTime(t),i=NaN}},getBufferingTime:function(){return S},setBufferingTime:function(e){S=e},getPlaybackTime:function(){return a},setBufferingTimestamp:function(e){i=e},getBufferingTimestamp:function(){return i},setPlaybackTime:function(e){a=e},setPlaybackTimestamp:function(e){r=e},getPlaybackTimestamp:function(){return r},getPauses:function(){return v},setPauses:function(e){v=e},isPlaybackSessionStarted:function(){return d},setPlaybackSessionStarted:function(e){d=e},getPlaybackCounter:function(){return m},incrementPlaybackCounter:function(){m++},setFirstEventSent:function(e){y=e},setPlaySequenceCounter:function(e){_=e},incrementPlaySequenceCounter:function(){_++},getPlaybackSessionID:function(){return o.ns_st_id},setAsset:function(n,s){e.getLogging().apiCall("setAsset",n,s),n=t.jsonObjectToStringDictionary(n);var i=e.getStateMachine().getCurrentState();if(i!=l.IDLE){e.getLogging().infoLog("Ending the current Clip. It was in state:",t.stateToString(i));var a={};e.getStaCore().newEvent(u.END,t.fixEventTime(a),a)}var r="",o=0;if(null!=n.ns_st_cn)r=n.ns_st_cn;else for(var c=0;c0){var n=r>0?r:t;a=e.getStaCore().getPlatformAPI().setTimeout(s,n)}r=0},pause:function(){i();var t=c.getInterval(e.getPlaybackSession().getAsset().getPlaybackTime()+(+new Date-e.getPlaybackSession().getAsset().getPlaybackTimestamp()));r=t-(e.getPlaybackSession().getAsset().getPlaybackTime()+(+new Date-e.getPlaybackSession().getAsset().getPlaybackTimestamp()))%t}}),n()}}(),m=function(){return function(e){function n(){}function s(){var n={},s=t.fixEventTime(n);e.getStaCore().newPseudoEvent(u.KEEPALIVE,s,n),r.start()}function i(){null!=a&&(e.getStaCore().getPlatformAPI().clearTimeout(a),a=null)}var a,r=this,o=f.DEFAULT_KEEP_ALIVE_INTERVAL;t.extend(r,{start:function(){i(),a=e.getStaCore().getPlatformAPI().setTimeout(s,o)},stop:i,setInterval:function(e){o=e},getInterval:function(){return o}}),n()}}(),_=function(){return function(e){function n(){a=l.IDLE,i=null,s=NaN}var s,i,a,r=this;t.extend(r,{eventTypeToState:function(e){if(a==l.IDLE){if(e==u.PLAY)return l.PLAYING;if(e==u.SEEK_START)return l.SEEKING_BEFORE_PLAYBACK;if(e==u.BUFFER)return l.BUFFERING_BEFORE_PLAYBACK}else if(a==l.PLAYBACK_NOT_STARTED){if(e==u.PLAY)return l.PLAYING;if(e==u.SEEK_START)return l.SEEKING_BEFORE_PLAYBACK;if(e==u.BUFFER)return l.BUFFERING_BEFORE_PLAYBACK;if(e==u.END||e==u.AD_SKIP)return l.IDLE}else if(a==l.PLAYING){if(e==u.END||e==u.AD_SKIP)return l.IDLE;if(e==u.BUFFER)return l.BUFFERING_DURING_PLAYBACK;if(e==u.PAUSE)return l.PAUSED;if(e==u.SEEK_START)return l.SEEKING_DURING_PLAYBACK}else if(a==l.PAUSED){if(e==u.END||e==u.AD_SKIP)return l.IDLE;if(e==u.BUFFER)return l.BUFFERING_DURING_PAUSE;if(e==u.PLAY)return l.PLAYING;if(e==u.SEEK_START)return l.SEEKING_DURING_PAUSE}else if(a==l.BUFFERING_BEFORE_PLAYBACK){if(e==u.END||e==u.AD_SKIP)return l.IDLE;if(e==u.PAUSE||e==u.BUFFER_STOP)return l.PLAYBACK_NOT_STARTED;if(e==u.PLAY)return l.PLAYING;if(e==u.SEEK_START)return l.SEEKING_BEFORE_PLAYBACK}else if(a==l.BUFFERING_DURING_PLAYBACK){if(e==u.END||e==u.AD_SKIP)return l.IDLE;if(e==u.PLAY||e==u.BUFFER_STOP)return l.PLAYING;if(e==u.PAUSE_ON_BUFFERING)return l.PAUSED_DURING_BUFFERING;if(e==u.SEEK_START)return l.SEEKING_DURING_BUFFERING;if(e==u.PAUSE)return l.PAUSED}else if(a==l.BUFFERING_DURING_SEEKING){if(e==u.END||e==u.AD_SKIP)return l.IDLE;if(e==u.PLAY)return l.PLAYING;if(e==u.BUFFER_STOP)return l.SEEKING_DURING_PLAYBACK;if(e==u.PAUSE)return l.PAUSED}else if(a==l.BUFFERING_DURING_PAUSE){if(e==u.END||e==u.AD_SKIP)return l.IDLE;if(e==u.PLAY)return l.PLAYING;if(e==u.SEEK_START)return l.SEEKING_DURING_PAUSE;if(e==u.BUFFER_STOP||e==u.PAUSE)return l.PAUSED}else if(a==l.SEEKING_BEFORE_PLAYBACK){if(e==u.END||e==u.AD_SKIP)return l.IDLE;if(e==u.PAUSE)return l.PLAYBACK_NOT_STARTED;if(e==u.PLAY)return l.PLAYING;if(e==u.BUFFER)return l.BUFFERING_BEFORE_PLAYBACK}else if(a==l.SEEKING_DURING_PLAYBACK){if(e==u.END||e==u.AD_SKIP)return l.IDLE;if(e==u.PLAY)return l.PLAYING;if(e==u.PAUSE)return l.PAUSED;if(e==u.BUFFER)return l.BUFFERING_DURING_SEEKING}else if(a==l.SEEKING_DURING_BUFFERING){if(e==u.END||e==u.AD_SKIP)return l.IDLE;if(e==u.PLAY)return l.PLAYING;if(e==u.PAUSE||e==u.BUFFER_STOP)return l.PAUSED;if(e==u.BUFFER)return l.BUFFERING_DURING_SEEKING}else if(a==l.SEEKING_DURING_PAUSE){if(e==u.END||e==u.AD_SKIP)return l.IDLE;if(e==u.PLAY)return l.PLAYING;if(e==u.PAUSE||e==u.BUFFER_STOP)return l.PAUSED;if(e==u.BUFFER)return l.BUFFERING_DURING_PAUSE}else if(a==l.PAUSED_DURING_BUFFERING){if(e==u.END||e==u.AD_SKIP)return l.IDLE;if(e==u.SEEK_START)return l.SEEKING_DURING_BUFFERING;if(e==u.PAUSE)return l.PAUSED;if(e==u.PLAY||e==u.BUFFER_STOP)return l.PLAYING}return null},getCurrentState:function(){return a},newEvent:function(e,t){var n=r.eventTypeToState(e);a!=n&&(i=a,a=n,s=t)},getPreviousState:function(){return i},getLastStateChangeTimestamp:function(){return s}}),n()}}(),v=function(){return function(e){var n=this;t.extend(n,{onSeekStartWhenPausedOrBufferingDuringPause:function(t,n){var s=parseInt(n.ns_st_po);e.getPlaybackSession().getAsset().isSeeking()?e.getPlaybackSession().getAsset().isCollectingSeekingTime()||(e.getPlaybackSession().getAsset().setSeekingTimestamp(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!0)):e.getPlaybackSession().getAsset().incrementSeeks(),e.getPlaybackSession().getAsset().isSeeking()||(e.getPlaybackSession().getAsset().setSeeking(!0),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!0),e.getPlaybackSession().getAsset().setSeekStartPosition(s),e.getPlaybackSession().getAsset().setSeekingTimestamp(t)),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t)},onBufferWhenSeekingOrPaused:function(t,n){e.getPlaybackSession().setBufferingTimestamp(t),e.getPlaybackSession().getAsset().setBufferingTimestamp(t),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t)},onPlayWhenSeekingDuringBufferingOrSeekingDuringPause:function(t,n){var s=parseInt(n.ns_st_po);e.getPlaybackSession().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().isSeeking()&&(e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().addSeekingTime(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().getAsset().addSeekingAmount(s),e.getPlaybackSession().getAsset().setSeeking(!1)),e.getPlaybackSession().getAsset().incrementPlayCounter(),e.getPlaybackSession().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackStartPosition(s),e.getHeartbeat().resume(),e.getKeepAlive().start();var i=e.getStaCore().createLabels(u.PLAY,n,t);e.getPlaybackSession().getAsset().updateDeltaLabels(i.eventLabels), e.getPlaybackSession().getAsset().updateIndependentLabels(i.eventLabels),e.getEventManager().newEvent(i)},onBufferStopWhenBufferingDuringSeekingOrBufferingDuringPause:function(t,n){e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t)},onPauseWhenSeekingDuringPlaybackOrSeekingDuringPause:function(t,n){e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().addSeekingTime(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t)},onEndOrAdSkipWhenSeekingDuringBufferingOrSeekingDuringPause:function(n,s){e.getStaCore().resetHeartbeat(),e.getKeepAlive().stop(),e.getPlaybackSession().getAsset().addElapsedTime(n);var i=e.getStaCore().createLabels(u.END,s,n);e.getPlaybackSession().getAsset().updateDeltaLabels(i.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(i.eventLabels),e.getEventManager().newEvent(i),e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().setSeekingTimeBeforeEnd(n-e.getPlaybackSession().getAsset().getSeekingTimestamp()),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().storeAssetPlaybackCounters(),e.getPlaybackSession().getAsset().resetAssetLifecycleLabels(),e.getPlaybackSession().getAsset().setPlaybackStarted(!1),s.hasOwnProperty("ns_st_pe")&&t.parseBoolean(s.ns_st_pe,!1)&&e.getStaCore().resetPlaybackSession()},onBufferStopWhenSeekingDuringBufferingOrSeekingDuringPause:function(t,n){e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().addSeekingTime(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t)},onBufferStopOrOnPlayWhenBufferingDuringPlayback:function(t,n){var s=parseInt(n.ns_st_po);e.getStaCore().stopPausedOnBufferingTimer(),e.getPlaybackSession().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().incrementPlayCounter(),e.getPlaybackSession().getAsset().incrementPlaySequenceCounter(),e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackStartPosition(s),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getHeartbeat().resume(),e.getKeepAlive().start()}})}}(),h=function(){return function(e){var n=this;t.extend(n,{onEndOrAdSkip:function(n,s){e.getPlaybackSession().addBufferingTime(n),e.getPlaybackSession().getAsset().addBufferingTime(n),e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&e.getPlaybackSession().getAsset().setSeekingTimeBeforeEnd(n-e.getPlaybackSession().getAsset().getSeekingTimestamp()),e.getPlaybackSession().getAsset().resetAssetLifecycleLabels(),e.getPlaybackSession().getAsset().setPlaybackStarted(!1),s.hasOwnProperty("ns_st_pe")&&t.parseBoolean(s.ns_st_pe,!1)&&e.getStaCore().resetPlaybackSession()},onBufferStop:function(t,n){e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().addSeekingTime(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1))},onSeekStart:function(t,n){var s=parseInt(n.ns_st_po);e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().getAsset().isSeeking()?e.getPlaybackSession().getAsset().isCollectingSeekingTime()||(e.getPlaybackSession().getAsset().setSeekingTimestamp(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!0)):e.getPlaybackSession().getAsset().incrementSeeks(),e.getPlaybackSession().getAsset().isSeeking()||(e.getPlaybackSession().getAsset().setSeeking(!0),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!0),e.getPlaybackSession().getAsset().setSeekStartPosition(s),e.getPlaybackSession().getAsset().setSeekingTimestamp(t))},onPause:function(t,n){e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().addSeekingTime(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1))},onPlay:function(t,n){var s=parseInt(n.ns_st_po);e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().getAsset().isSeeking()&&(e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().addSeekingTime(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().getAsset().addSeekingAmount(s),e.getPlaybackSession().getAsset().setSeeking(!1)),e.getPlaybackSession().getAsset().setPlaybackStarted(!0),(e.getPlaybackSession().getAsset().isPlaybackSessionLooping()||0==e.getPlaybackSession().getPlaybackCounter())&&(e.getPlaybackSession().incrementPlaybackCounter(),e.getPlaybackSession().getAsset().setPlaybackSessionLooping(!1)),e.getPlaybackSession().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().setPlaybackStarted(!0),e.getPlaybackSession().getAsset().incrementSegmentPlaybackCounter(),e.getPlaybackSession().getAsset().incrementPlayCounter(),e.getPlaybackSession().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackStartPosition(s),(0==e.getPlaybackSession().getAsset().getLowestPartNumberPlayed()||e.getPlaybackSession().getAsset().getPartNumber()<=e.getPlaybackSession().getAsset().getLowestPartNumberPlayed())&&(e.getPlaybackSession().getAsset().setLowestPartNumberPlayed(e.getPlaybackSession().getAsset().getPartNumber()),e.getPlaybackSession().getAsset().incrementAssetPlaybackCounter(),e.getPlaybackSession().getAsset().setPlaySequenceCounter(0),e.getPlaybackSession().getAsset().resetAssetPlaybackIntervals()),e.getPlaybackSession().getAsset().incrementPlaySequenceCounter(),e.getStaCore().isLoadingTimeSent()||(n.ns_st_lt=e.getStaCore().getLoadTimeOffset()+t-e.getStaCore().getInitTimestamp()+"",e.getStaCore().setLoadingTimeSent(!0)),e.getHeartbeat().resume(),e.getKeepAlive().start();var i=e.getStaCore().createLabels(u.PLAY,n,t);e.getPlaybackSession().getAsset().updateDeltaLabels(i.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(i.eventLabels),e.getEventManager().newEvent(i)}})}}(),S=function(){return function(e){var n=this;t.extend(n,{onEndAndSkip:function(n,s){e.getStaCore().resetHeartbeat(),e.getKeepAlive().stop(),e.getPlaybackSession().addBufferingTime(n),e.getPlaybackSession().getAsset().addBufferingTime(n),e.getPlaybackSession().getAsset().addElapsedTime(n);var i=e.getStaCore().createLabels(u.END,s,n);e.getPlaybackSession().getAsset().updateDeltaLabels(i.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(i.eventLabels),e.getEventManager().newEvent(i),e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().setSeekingTimeBeforeEnd(n-e.getPlaybackSession().getAsset().getSeekingTimestamp()),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().storeAssetPlaybackCounters(),e.getPlaybackSession().getAsset().resetAssetLifecycleLabels(),e.getPlaybackSession().getAsset().setPlaybackStarted(!1),s.hasOwnProperty("ns_st_pe")&&t.parseBoolean(s.ns_st_pe,!1)&&e.getStaCore().resetPlaybackSession()},onPause:function(t,n){e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t)},onPlay:function(t,n){var s=parseInt(n.ns_st_po);e.getPlaybackSession().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().incrementPlayCounter(),e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().getAsset().isSeeking()&&(e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().addSeekingTime(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().getAsset().addSeekingAmount(s),e.getPlaybackSession().getAsset().setSeeking(!1)),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackStartPosition(s),e.getHeartbeat().resume(),e.getKeepAlive().start();var i=e.getStaCore().createLabels(u.PLAY,n,t);e.getPlaybackSession().getAsset().updateDeltaLabels(i.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(i.eventLabels),e.getEventManager().newEvent(i)}})}}(),P=function(){return function(e){var n=this;t.extend(n,{onPauseOnBuffering:function(t,n){parseInt(n.ns_st_po),e.getStaCore().stopPausedOnBufferingTimer(),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().incrementPauses(),e.getPlaybackSession().getAsset().incrementPauses();var s=e.getStaCore().createLabels(u.PAUSE,n,t);e.getPlaybackSession().getAsset().updateDeltaLabels(s.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(s.eventLabels),e.getEventManager().newEvent(s),e.getPlaybackSession().setBufferingTimestamp(t),e.getPlaybackSession().getAsset().setBufferingTimestamp(t)},onEndOrAdSkip:function(n,s){parseInt(s.ns_st_po),e.getStaCore().stopPausedOnBufferingTimer(),e.getStaCore().resetHeartbeat(),e.getKeepAlive().stop(),e.getPlaybackSession().addBufferingTime(n),e.getPlaybackSession().getAsset().addBufferingTime(n),e.getPlaybackSession().getAsset().addElapsedTime(n);var i=e.getStaCore().createLabels(u.END,s,n);e.getPlaybackSession().getAsset().updateDeltaLabels(i.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(i.eventLabels),e.getEventManager().newEvent(i),e.getPlaybackSession().getAsset().resetAssetLifecycleLabels(),e.getPlaybackSession().getAsset().setPlaybackStarted(!1),s.hasOwnProperty("ns_st_pe")&&t.parseBoolean(s.ns_st_pe,!1)&&e.getStaCore().resetPlaybackSession()},onSeekStart:function(t,n){var s=parseInt(n.ns_st_po);e.getStaCore().stopPausedOnBufferingTimer(),e.getHeartbeat().pause(),e.getKeepAlive().stop(),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().getAsset().incrementSeeks(),e.getPlaybackSession().getAsset().setSeeking(!0),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!0),e.getPlaybackSession().getAsset().setSeekStartPosition(s),e.getPlaybackSession().getAsset().setSeekingTimestamp(t),e.getPlaybackSession().incrementPauses(),e.getPlaybackSession().getAsset().incrementPauses();var i=e.getStaCore().createLabels(u.PAUSE,n,t);e.getPlaybackSession().getAsset().updateDeltaLabels(i.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(i.eventLabels),e.getEventManager().newEvent(i)},onPause:function(t,n){parseInt(n.ns_st_po),e.getStaCore().stopPausedOnBufferingTimer(),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().incrementPauses(),e.getPlaybackSession().getAsset().incrementPauses();var s=e.getStaCore().createLabels(u.PAUSE,n,t);e.getPlaybackSession().getAsset().updateDeltaLabels(s.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(s.eventLabels),e.getEventManager().newEvent(s)}})}}(),k=function(){return function(e){var n=this;t.extend(n,{onEndOrAdSkip:function(n,s){e.getStaCore().resetHeartbeat(),e.getKeepAlive().stop(),e.getStaCore().stopPausedOnBufferingTimer(),e.getPlaybackSession().addBufferingTime(n),e.getPlaybackSession().getAsset().addBufferingTime(n),e.getPlaybackSession().getAsset().addElapsedTime(n);var i=e.getStaCore().createLabels(u.END,s,n);e.getPlaybackSession().getAsset().updateDeltaLabels(i.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(i.eventLabels),e.getEventManager().newEvent(i),e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().setSeekingTimeBeforeEnd(n-e.getPlaybackSession().getAsset().getSeekingTimestamp()),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().storeAssetPlaybackCounters(),e.getPlaybackSession().getAsset().resetAssetLifecycleLabels(),e.getPlaybackSession().getAsset().setPlaybackStarted(!1),s.hasOwnProperty("ns_st_pe")&&t.parseBoolean(s.ns_st_pe,!1)&&e.getStaCore().resetPlaybackSession()},onPause:function(t,n){e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().incrementPauses(),e.getPlaybackSession().getAsset().incrementPauses(),e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().addSeekingTime(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t)},onPlay:function(t,n){var s=parseInt(n.ns_st_po);e.getPlaybackSession().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().incrementPlayCounter(),e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().getAsset().isSeeking()&&(e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().addSeekingTime(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().getAsset().addSeekingAmount(s),e.getPlaybackSession().getAsset().setSeeking(!1)),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackStartPosition(s),e.getHeartbeat().resume(),e.getKeepAlive().start();var i=e.getStaCore().createLabels(u.PLAY,n,t);e.getPlaybackSession().getAsset().updateDeltaLabels(i.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(i.eventLabels),e.getEventManager().newEvent(i)}})}}(),A=function(){return function(e){var n=this;t.extend(n,{onBuffer:function(t,n){e.getPlaybackSession().setPlaybackSessionStarted(!0),e.getPlaybackSession().getAsset().setAssetStarted(!0),e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().setSeekingTime(e.getPlaybackSession().getAsset().getSeekingTimeBeforeEnd()),e.getPlaybackSession().setBufferingTimestamp(t),e.getPlaybackSession().getAsset().setBufferingTimestamp(t)},onSeekStart:function(t,n){var s=parseInt(n.ns_st_po);e.getPlaybackSession().setPlaybackSessionStarted(!0),e.getPlaybackSession().getAsset().setAssetStarted(!0),e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().setSeekingTime(e.getPlaybackSession().getAsset().getSeekingTimeBeforeEnd()),e.getPlaybackSession().getAsset().incrementSeeks(),e.getPlaybackSession().getAsset().setSeeking(!0),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!0),e.getPlaybackSession().getAsset().setSeekStartPosition(s),e.getPlaybackSession().getAsset().setSeekingTimestamp(t)},onPlay:function(t,n){var s=parseInt(n.ns_st_po);e.getPlaybackSession().setPlaybackSessionStarted(!0),e.getPlaybackSession().getAsset().setAssetStarted(!0),(e.getPlaybackSession().getAsset().isPlaybackSessionLooping()||0==e.getPlaybackSession().getPlaybackCounter())&&(e.getPlaybackSession().incrementPlaybackCounter(),e.getPlaybackSession().getAsset().setPlaybackSessionLooping(!1)),e.getPlaybackSession().getAsset().isSeeking()&&(e.getPlaybackSession().getAsset().setSeekingTime(e.getPlaybackSession().getAsset().getSeekingTimeBeforeEnd()),e.getPlaybackSession().getAsset().addSeekingAmount(s),e.getPlaybackSession().getAsset().setSeeking(!1)),e.getPlaybackSession().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().setPlaybackStarted(!0),e.getPlaybackSession().getAsset().incrementSegmentPlaybackCounter(),(0==e.getPlaybackSession().getAsset().getLowestPartNumberPlayed()||e.getPlaybackSession().getAsset().getPartNumber()<=e.getPlaybackSession().getAsset().getLowestPartNumberPlayed())&&(e.getPlaybackSession().getAsset().setLowestPartNumberPlayed(e.getPlaybackSession().getAsset().getPartNumber()),e.getPlaybackSession().getAsset().incrementAssetPlaybackCounter(),e.getPlaybackSession().getAsset().setPlaySequenceCounter(0),e.getPlaybackSession().getAsset().resetAssetPlaybackIntervals()),e.getPlaybackSession().getAsset().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().incrementPlayCounter(),e.getPlaybackSession().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackStartPosition(s),e.getStaCore().isLoadingTimeSent()||(n.ns_st_lt=e.getStaCore().getLoadTimeOffset()+t-e.getStaCore().getInitTimestamp()+"",e.getStaCore().setLoadingTimeSent(!0)),e.getHeartbeat().resume(),e.getKeepAlive().start();var i=e.getStaCore().createLabels(u.PLAY,n,t);e.getPlaybackSession().getAsset().updateDeltaLabels(i.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(i.eventLabels),e.getEventManager().newEvent(i)}})}}(),E=function(){return function(e){var n=this;t.extend(n,{onEndOrAdSkip:function(n,s){e.getStaCore().resetHeartbeat(),e.getKeepAlive().stop(),e.getPlaybackSession().getAsset().addElapsedTime(n);var i=e.getStaCore().createLabels(u.END,s,n);e.getPlaybackSession().getAsset().updateDeltaLabels(i.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(i.eventLabels),e.getEventManager().newEvent(i),e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().setSeekingTimeBeforeEnd(n-e.getPlaybackSession().getAsset().getSeekingTimestamp()),e.getPlaybackSession().getAsset().setSeeking(!1)),e.getPlaybackSession().storeAssetPlaybackCounters(),e.getPlaybackSession().getAsset().resetAssetLifecycleLabels(),e.getPlaybackSession().getAsset().setPlaybackStarted(!1),s.hasOwnProperty("ns_st_pe")&&t.parseBoolean(s.ns_st_pe,!1)&&e.getStaCore().resetPlaybackSession()},onPlay:function(t,n){var s=parseInt(n.ns_st_po);e.getPlaybackSession().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().isSeeking()&&(e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().addSeekingTime(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().getAsset().addSeekingAmount(s),e.getPlaybackSession().getAsset().setSeeking(!1)),e.getPlaybackSession().getAsset().incrementPlayCounter(),e.getPlaybackSession().getAsset().incrementPlaySequenceCounter(),e.getPlaybackSession().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackStartPosition(s),e.getHeartbeat().resume(),e.getKeepAlive().start();var i=e.getStaCore().createLabels(u.PLAY,n,t);e.getPlaybackSession().getAsset().updateDeltaLabels(i.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(i.eventLabels),e.getEventManager().newEvent(i)}})}}(),T=function(){return function(e){var n=this;t.extend(n,{onEndOrAdSkip:function(n,s){e.getStaCore().resetHeartbeat(),e.getKeepAlive().stop(),e.getPlaybackSession().addBufferingTime(n),e.getPlaybackSession().getAsset().addBufferingTime(n),e.getPlaybackSession().getAsset().addElapsedTime(n),e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().setSeekingTimeBeforeEnd(n-e.getPlaybackSession().getAsset().getSeekingTimestamp()),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1));var i=e.getStaCore().createLabels(u.END,s,n);e.getPlaybackSession().getAsset().updateDeltaLabels(i.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(i.eventLabels),e.getEventManager().newEvent(i),e.getPlaybackSession().getAsset().resetAssetLifecycleLabels(),e.getPlaybackSession().getAsset().setPlaybackStarted(!1),s.hasOwnProperty("ns_st_pe")&&t.parseBoolean(s.ns_st_pe,!1)&&e.getStaCore().resetPlaybackSession()},onBufferStop:function(t,n){var s=parseInt(n.ns_st_po);e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackStartPosition(s),e.getHeartbeat().resume(),e.getKeepAlive().start();var i=e.getStaCore().createLabels(u.PLAY,n,t);e.getPlaybackSession().getAsset().updateDeltaLabels(i.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(i.eventLabels),e.getEventManager().newEvent(i)},onSeekStart:function(t,n){var s=parseInt(n.ns_st_po);e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().getAsset().isSeeking()?e.getPlaybackSession().getAsset().isCollectingSeekingTime()||(e.getPlaybackSession().getAsset().setSeekingTimestamp(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!0)):e.getPlaybackSession().getAsset().incrementSeeks(),e.getPlaybackSession().getAsset().isSeeking()||(e.getPlaybackSession().getAsset().setSeeking(!0),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!0),e.getPlaybackSession().getAsset().setSeekStartPosition(s),e.getPlaybackSession().getAsset().setSeekingTimestamp(t)),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t)},onPause:function(t,n){e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t)},onPlay:function(t,n){var s=parseInt(n.ns_st_po);e.getPlaybackSession().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().incrementPlaySequenceCounter(),e.getPlaybackSession().addBufferingTime(t),e.getPlaybackSession().getAsset().addBufferingTime(t),e.getPlaybackSession().getAsset().incrementPlayCounter(),e.getPlaybackSession().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackStartPosition(s),e.getHeartbeat().resume(),e.getKeepAlive().start();var i=e.getStaCore().createLabels(u.PLAY,n,t);e.getPlaybackSession().getAsset().updateDeltaLabels(i.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(i.eventLabels),e.getEventManager().newEvent(i)}})}}(),w=function(){return function(e){var n=this;t.extend(n,{onEndOrAdSkip:function(n,s){e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().setSeekingTimeBeforeEnd(n-e.getPlaybackSession().getAsset().getSeekingTimestamp()),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().storeAssetPlaybackCounters(),e.getPlaybackSession().getAsset().resetAssetLifecycleLabels(),e.getPlaybackSession().getAsset().setPlaybackStarted(!1),s.hasOwnProperty("ns_st_pe")&&t.parseBoolean(s.ns_st_pe,!1)&&e.getStaCore().resetPlaybackSession()},onSeekStart:function(t,n){var s=parseInt(n.ns_st_po);e.getPlaybackSession().getAsset().isSeeking()?e.getPlaybackSession().getAsset().setSeekingTimestamp(t):e.getPlaybackSession().getAsset().incrementSeeks(),e.getPlaybackSession().getAsset().isSeeking()||(e.getPlaybackSession().getAsset().setSeeking(!0),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!0),e.getPlaybackSession().getAsset().setSeekStartPosition(s),e.getPlaybackSession().getAsset().setSeekingTimestamp(t))},onPlay:function(t,n){var s=parseInt(n.ns_st_po);e.getPlaybackSession().getAsset().isSeeking()&&(e.getPlaybackSession().getAsset().addSeekingAmount(s),e.getPlaybackSession().getAsset().setSeeking(!1)),e.getPlaybackSession().setPlaybackSessionStarted(!0),(e.getPlaybackSession().getAsset().isPlaybackSessionLooping()||0==e.getPlaybackSession().getPlaybackCounter())&&(e.getPlaybackSession().incrementPlaybackCounter(),e.getPlaybackSession().getAsset().setPlaybackSessionLooping(!1)),e.getPlaybackSession().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().setPlaybackStarted(!0),e.getPlaybackSession().getAsset().incrementSegmentPlaybackCounter(),(0==e.getPlaybackSession().getAsset().getLowestPartNumberPlayed()||e.getPlaybackSession().getAsset().getPartNumber()<=e.getPlaybackSession().getAsset().getLowestPartNumberPlayed())&&(e.getPlaybackSession().getAsset().setLowestPartNumberPlayed(e.getPlaybackSession().getAsset().getPartNumber()),e.getPlaybackSession().getAsset().incrementAssetPlaybackCounter(),e.getPlaybackSession().getAsset().setPlaySequenceCounter(0),e.getPlaybackSession().getAsset().resetAssetPlaybackIntervals()),e.getPlaybackSession().getAsset().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().incrementPlayCounter(),e.getPlaybackSession().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackStartPosition(s),e.getStaCore().isLoadingTimeSent()||(n.ns_st_lt=e.getStaCore().getLoadTimeOffset()+t-e.getStaCore().getInitTimestamp()+"",e.getStaCore().setLoadingTimeSent(!0)),e.getHeartbeat().resume(),e.getKeepAlive().start();var i=e.getStaCore().createLabels(u.PLAY,n,t);e.getPlaybackSession().getAsset().updateDeltaLabels(i.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(i.eventLabels),e.getEventManager().newEvent(i)},onBuffer:function(){e.getPlaybackSession().setBufferingTimestamp(eventTimestamp),e.getPlaybackSession().getAsset().setBufferingTimestamp(eventTimestamp)}})}}(),I=function(){return function(e){var n=this;t.extend(n,{onEndOrAdSkip:function(n,s){var i=parseInt(s.ns_st_po);e.getStaCore().resetHeartbeat(),e.getKeepAlive().stop(),e.getPlaybackSession().addPlaybackTime(n),e.getPlaybackSession().getAsset().addPlaybackTime(n),e.getPlaybackSession().getAsset().addElapsedTime(n),e.getPlaybackSession().getAsset().addInterval(i);var a=e.getStaCore().createLabels(u.END,s,n);e.getPlaybackSession().getAsset().updateDeltaLabels(a.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(a.eventLabels),e.getEventManager().newEvent(a),e.getPlaybackSession().getAsset().resetAssetLifecycleLabels(),e.getPlaybackSession().getAsset().setPlaybackStarted(!1),s.hasOwnProperty("ns_st_pe")&&t.parseBoolean(s.ns_st_pe,!1)&&e.getStaCore().resetPlaybackSession()},onBuffer:function(t,n){var s=parseInt(n.ns_st_po);e.getHeartbeat().pause(),e.getKeepAlive().stop(),e.getPlaybackSession().addPlaybackTime(t),e.getPlaybackSession().getAsset().addPlaybackTime(t),e.getPlaybackSession().getAsset().addInterval(s),e.getStaCore().isPauseOnBufferingEnabled()&&e.getStaCore().startPausedOnBufferingTimer(t,n),e.getPlaybackSession().getAsset().incrementBufferCount(),e.getPlaybackSession().setBufferingTimestamp(t),e.getPlaybackSession().getAsset().setBufferingTimestamp(t),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t)},onSeekStart:function(t,n){var s=parseInt(n.ns_st_po);e.getHeartbeat().pause(),e.getKeepAlive().stop(),e.getPlaybackSession().addPlaybackTime(t),e.getPlaybackSession().getAsset().addPlaybackTime(t),e.getPlaybackSession().getAsset().addInterval(s),e.getPlaybackSession().getAsset().incrementSeeks(),e.getPlaybackSession().getAsset().setSeeking(!0),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!0),e.getPlaybackSession().getAsset().setSeekStartPosition(s),e.getPlaybackSession().getAsset().setSeekingTimestamp(t),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().incrementPauses(),e.getPlaybackSession().getAsset().incrementPauses();var i=e.getStaCore().createLabels(u.PAUSE,n,t);e.getPlaybackSession().getAsset().updateDeltaLabels(i.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(i.eventLabels),e.getEventManager().newEvent(i)},onPause:function(t,n){var s=parseInt(n.ns_st_po);e.getHeartbeat().pause(),e.getKeepAlive().stop(),e.getPlaybackSession().addPlaybackTime(t),e.getPlaybackSession().getAsset().addPlaybackTime(t),e.getPlaybackSession().getAsset().addInterval(s),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().incrementPauses(),e.getPlaybackSession().getAsset().incrementPauses();var i=e.getStaCore().createLabels(u.PAUSE,n,t);e.getPlaybackSession().getAsset().updateDeltaLabels(i.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(i.eventLabels),e.getEventManager().newEvent(i)}})}}(),x=function(){return function(e){var n=this;t.extend(n,{onEndOrAdSkip:function(n,s){e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().setSeekingTimeBeforeEnd(n-e.getPlaybackSession().getAsset().getSeekingTimestamp()),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().storeAssetPlaybackCounters(),e.getPlaybackSession().getAsset().resetAssetLifecycleLabels(),e.getPlaybackSession().getAsset().setPlaybackStarted(!1),s.hasOwnProperty("ns_st_pe")&&t.parseBoolean(s.ns_st_pe,!1)&&e.getStaCore().resetPlaybackSession()},onPause:function(t,n){e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().addSeekingTime(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1))},onPlay:function(t,n){var s=parseInt(n.ns_st_po);e.getPlaybackSession().getAsset().isSeeking()&&(e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().addSeekingTime(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().getAsset().addSeekingAmount(s),e.getPlaybackSession().getAsset().setSeeking(!1)),(e.getPlaybackSession().getAsset().isPlaybackSessionLooping()||0==e.getPlaybackSession().getPlaybackCounter())&&(e.getPlaybackSession().incrementPlaybackCounter(), e.getPlaybackSession().getAsset().setPlaybackSessionLooping(!1)),e.getPlaybackSession().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().incrementPlayCounter(),e.getPlaybackSession().getAsset().setPlaybackStarted(!0),e.getPlaybackSession().getAsset().incrementSegmentPlaybackCounter(),(0==e.getPlaybackSession().getAsset().getLowestPartNumberPlayed()||e.getPlaybackSession().getAsset().getPartNumber()<=e.getPlaybackSession().getAsset().getLowestPartNumberPlayed())&&(e.getPlaybackSession().getAsset().setLowestPartNumberPlayed(e.getPlaybackSession().getAsset().getPartNumber()),e.getPlaybackSession().getAsset().incrementAssetPlaybackCounter(),e.getPlaybackSession().getAsset().setPlaySequenceCounter(0),e.getPlaybackSession().getAsset().resetAssetPlaybackIntervals()),e.getPlaybackSession().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackStartPosition(s),e.getStaCore().isLoadingTimeSent()||(n.ns_st_lt=e.getStaCore().getLoadTimeOffset()+t-e.getStaCore().getInitTimestamp()+"",e.getStaCore().setLoadingTimeSent(!0)),e.getHeartbeat().resume(),e.getKeepAlive().start();var i=e.getStaCore().createLabels(u.PLAY,n,t);e.getPlaybackSession().getAsset().updateDeltaLabels(i.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(i.eventLabels),e.getEventManager().newEvent(i)}})}}(),C=function(){return function(e){var n=this;t.extend(n,{onPause:function(t,n){e.getPlaybackSession().incrementPauses(),e.getPlaybackSession().getAsset().incrementPauses(),e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().addSeekingTime(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t)}})}}(),L=function(){return function(e){var n=this;t.extend(n,{onEndOrAdSkip:function(n,s){parseInt(s.ns_st_po),e.getStaCore().resetHeartbeat(),e.getKeepAlive().stop(),e.getPlaybackSession().getAsset().addElapsedTime(n);var i=e.getStaCore().createLabels(u.END,s,n);e.getPlaybackSession().getAsset().updateDeltaLabels(i.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(i.eventLabels),e.getEventManager().newEvent(i),e.getPlaybackSession().getAsset().isSeeking()&&e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().setSeekingTimeBeforeEnd(n-e.getPlaybackSession().getAsset().getSeekingTimestamp()),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().storeAssetPlaybackCounters(),e.getPlaybackSession().getAsset().resetAssetLifecycleLabels(),e.getPlaybackSession().getAsset().setPlaybackStarted(!1),s.hasOwnProperty("ns_st_pe")&&t.parseBoolean(s.ns_st_pe,!1)&&e.getStaCore().resetPlaybackSession()},onPlay:function(t,n){var s=parseInt(n.ns_st_po);e.getPlaybackSession().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().incrementPlaySequenceCounter(),e.getPlaybackSession().getAsset().incrementPlayCounter(),e.getPlaybackSession().getAsset().isSeeking()&&(e.getPlaybackSession().getAsset().isCollectingSeekingTime()&&(e.getPlaybackSession().getAsset().addSeekingTime(t),e.getPlaybackSession().getAsset().setCollectingSeekingTime(!1)),e.getPlaybackSession().getAsset().addSeekingAmount(s),e.getPlaybackSession().getAsset().setSeeking(!1)),e.getPlaybackSession().getAsset().addElapsedTime(t),e.getPlaybackSession().getAsset().setElapsedTimestamp(t),e.getPlaybackSession().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackTimestamp(t),e.getPlaybackSession().getAsset().setPlaybackStartPosition(s),e.getStaCore().isLoadingTimeSent()||(n.ns_st_lt=e.getStaCore().getLoadTimeOffset()+t-e.getStaCore().getInitTimestamp()+"",e.getStaCore().setLoadingTimeSent(!0)),e.getHeartbeat().resume(),e.getKeepAlive().start();var i=e.getStaCore().createLabels(u.PLAY,n,t);e.getPlaybackSession().getAsset().updateDeltaLabels(i.eventLabels),e.getPlaybackSession().getAsset().updateIndependentLabels(i.eventLabels),e.getEventManager().newEvent(i)}})}}(),N=function(){return function(e){function n(){if(g=new O(ie),t.getNamespace().comScore?(ae=t.getNamespace().comScore.exports,g.setAppCore(ae.c())):g.setAppCore(null),e.publisherId){ie.setLabel("c2",e.publisherId);var n=e.secure;!n&&g.getAppCore()?n=g.getAppCore().isSecure():!n&&t.isBrowser()&&(n=t.isWebSecure());var i=(n?"https://sb":"http://b")+".scorecardresearch.com/p?c1=2";ie.setLiveEndpointURL(i)}e.liveEndpointURL&&ie.setLiveEndpointURL(e.liveEndpointURL),g.setKeepAlive(new m(g)),g.setHeartbeat(new y(g)),g.setEventManager(new b(g)),g.setStateMachine(new _),g.setLogging(new s(f.LOG_NAMESPACE,e.debug)),g.setPlaybackSession(new p(g)),N=new A(g),D=new E(g),B=new w(g),R=new I(g),U=new h(g),F=new P(g),M=new k(g),G=new S(g),j=new T(g),K=new x(g),V=new C(g),W=new L(g),z=new v(g),q=!1,H=0,Y=+new Date,J=!0,Z=!1,ee=[],e.systemClockJumpDetection&&ie.enableSystemClockJumpsDetection(parseInt(e.systemClockJumpDetectionInterval))}function i(e){var t=g.getStateMachine().getCurrentState();if(t==l.IDLE||t==l.PLAYBACK_NOT_STARTED||t==l.BUFFERING_BEFORE_PLAYBACK||t==l.SEEKING_BEFORE_PLAYBACK){if(e==u.PLAY)return!0}else if(t==l.PLAYING){if(e==u.END||e==u.AD_SKIP||e==u.SEEK_START||e==u.PAUSE)return!0}else if(t==l.PAUSED||t==l.BUFFERING_DURING_PAUSE||t==l.SEEKING_DURING_PLAYBACK||t==l.SEEKING_DURING_BUFFERING||t==l.SEEKING_DURING_PAUSE){if(e==u.END||e==u.AD_SKIP||e==u.PLAY)return!0}else if(t==l.BUFFERING_DURING_PLAYBACK){if(e==u.PAUSE_ON_BUFFERING||e==u.END||e==u.AD_SKIP||e==u.SEEK_START||e==u.PAUSE||e==u.PLAY)return!0}else if(t==l.BUFFERING_DURING_SEEKING){if(e==u.END||e==u.AD_SKIP||e==u.PAUSE||e==u.PLAY)return!0}else if(t==l.PAUSED_DURING_BUFFERING&&(e==u.END||e==u.AD_SKIP||e==u.BUFFER_STOP||e==u.PLAY))return!0;return!1}function a(e,t,n){var s=g.getStateMachine().getCurrentState();e==u.AD_SKIP&&!n.hasOwnProperty("ns_st_ui")&&i(e)?n.ns_st_ui="skip":e==u.SEEK_START&&!n.hasOwnProperty("ns_st_ui")&&i(e)&&(n.ns_st_ui="seek"),s==l.IDLE?e==u.BUFFER?N.onBuffer(t,n):e==u.SEEK_START?N.onSeekStart(t,n):e==u.PLAY&&N.onPlay(t,n):s==l.PLAYBACK_NOT_STARTED?e==u.END||e==u.AD_SKIP?B.onEndOrAdSkip(t,n):e==u.SEEK_START?B.onSeekStart(t,n):e==u.PLAY?B.onPlay(t,n):e==u.BUFFER&&B.onBuffer(t,n):s==l.PLAYING?e==u.END||e==u.AD_SKIP?R.onEndOrAdSkip(t,n):e==u.BUFFER?R.onBuffer(t,n):e==u.SEEK_START?R.onSeekStart(t,n):e==u.PAUSE&&R.onPause(t,n):s==l.PAUSED?e==u.END||e==u.AD_SKIP?D.onEndOrAdSkip(t,n):e==u.PLAY?D.onPlay(t,n):e==u.BUFFER?z.onBufferWhenSeekingOrPaused(t,n):e==u.SEEK_START&&z.onSeekStartWhenPausedOrBufferingDuringPause(t,n):s==l.BUFFERING_BEFORE_PLAYBACK?e==u.END||e==u.AD_SKIP?U.onEndOrAdSkip(t,n):e==u.BUFFER_STOP?U.onBufferStop(t,n):e==u.SEEK_START?U.onSeekStart(t,n):e==u.PAUSE?U.onPause(t,n):e==u.PLAY&&U.onPlay(t,n):s==l.BUFFERING_DURING_PLAYBACK?e==u.PAUSE_ON_BUFFERING?F.onPauseOnBuffering(t,n):e==u.BUFFER_STOP?z.onBufferStopOrOnPlayWhenBufferingDuringPlayback(t,n):e==u.END||e==u.AD_SKIP?F.onEndOrAdSkip(t,n):e==u.SEEK_START?F.onSeekStart(t,n):e==u.PAUSE?F.onPause(t,n):e==u.PLAY&&z.onBufferStopOrOnPlayWhenBufferingDuringPlayback(t,n):s==l.BUFFERING_DURING_SEEKING?e==u.END||e==u.AD_SKIP?M.onEndOrAdSkip(t,n):e==u.PAUSE?M.onPause(t,n):e==u.PLAY?M.onPlay(t,n):e==u.BUFFER_STOP&&z.onBufferStopWhenBufferingDuringSeekingOrBufferingDuringPause(t,n):s==l.BUFFERING_DURING_PAUSE?e==u.END||e==u.AD_SKIP?G.onEndAndSkip(t,n):e==u.PAUSE?G.onPause(t,n):e==u.PLAY?G.onPlay(t,n):e==u.SEEK_START?z.onSeekStartWhenPausedOrBufferingDuringPause(t,n):e==u.BUFFER_STOP&&z.onBufferStopWhenBufferingDuringSeekingOrBufferingDuringPause(t,n):s==l.SEEKING_BEFORE_PLAYBACK?e==u.END||e==u.AD_SKIP?K.onEndOrAdSkip(t,n):e==u.PAUSE?K.onPause(t,n):e==u.PLAY?K.onPlay(t,n):e==u.BUFFER&&z.onBufferWhenSeekingOrPaused(t,n):s==l.SEEKING_DURING_PLAYBACK?e==u.END||e==u.AD_SKIP?W.onEndOrAdSkip(t,n):e==u.PLAY?W.onPlay(t,n):e==u.BUFFER?z.onBufferWhenSeekingOrPaused(t,n):e==u.PAUSE&&z.onPauseWhenSeekingDuringPlaybackOrSeekingDuringPause(t,n):s==l.SEEKING_DURING_BUFFERING?e==u.PAUSE?V.onPause(t,n):e==u.BUFFER?z.onBufferWhenSeekingOrPaused(t,n):e==u.PLAY?z.onPlayWhenSeekingDuringBufferingOrSeekingDuringPause(t,n):e==u.END||e==u.AD_SKIP?z.onEndOrAdSkipWhenSeekingDuringBufferingOrSeekingDuringPause(t,n):e==u.BUFFER_STOP&&z.onBufferStopWhenSeekingDuringBufferingOrSeekingDuringPause(t,n):s==l.PAUSED_DURING_BUFFERING?e==u.END||e==u.AD_SKIP?j.onEndOrAdSkip(t,n):e==u.BUFFER_STOP?j.onBufferStop(t,n):e==u.SEEK_START?j.onSeekStart(t,n):e==u.PAUSE?j.onPause(t,n):e==u.PLAY&&j.onPlay(t,n):s==l.SEEKING_DURING_PAUSE&&(e==u.BUFFER?z.onBufferWhenSeekingOrPaused(t,n):e==u.PLAY?z.onPlayWhenSeekingDuringBufferingOrSeekingDuringPause(t,n):e==u.PAUSE?z.onPauseWhenSeekingDuringPlaybackOrSeekingDuringPause(t,n):e==u.END||e==u.AD_SKIP?z.onEndOrAdSkipWhenSeekingDuringBufferingOrSeekingDuringPause(t,n):e==u.BUFFER_STOP&&z.onBufferStopWhenSeekingDuringBufferingOrSeekingDuringPause(t,n)),i(e)&&g.getPlaybackSession().setFirstEventSent(!0)}function r(e,n){for(var s,i=le.encodeURIComponent||escape,a=[],r=f.LABELS_ORDER,o=e.split("?"),c=o[0],u=o[1],l=u.split("&"),d=0,g=l.length;dA&&s.indexOf("&")>0){var E=s.substr(0,A-8).lastIndexOf("&");s=(s.substring(0,E)+"&ns_cut="+i(s.substring(E+1))).substr(0,A)}return s}var g,N,D,B,R,U,F,M,G,j,K,V,W,z,q,H,Y,$,J,X,Z,Q,ee,te,ne,se,ie=this,ae={},re=f.DEFAULT_PAUSED_ON_BUFFERING_INTERVAL,oe=f.THROTTLING_DELAY,ce={},ue=!1;t.extend(ie,{getConfiguration:function(){return e||{}},enableSystemClockJumpsDetection:function(e){(e=0){if(n